*BSD News Article 14660


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!olivea!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!not-for-mail
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Problems with g++2.3.3 and leda
Keywords: g++2.3.3, leda
Message-ID: <1qsk0q$11vm@hal.gnu.ai.mit.edu>
Date: 18 Apr 93 22:16:58 GMT
References: <1qjd46$vc4@obelix.uni-muenster.de> <1qr1uu$1hck@hal.gnu.ai.mit.edu> <C5oyuv.AnL@hip-hop.suvl.ca.us>
Organization: dis
Lines: 13
NNTP-Posting-Host: hal.ai.mit.edu


In article <C5oyuv.AnL@hip-hop.suvl.ca.us> dfox@hip-hop.suvl.ca.us
(David Fox) writes:
>
> One should never compare a floating point value with integer zero.

By the rules of C, the zero is promoted to the floating point type
automatically.  If this is not happening, it is a compiler bug.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!