Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!im4u!ut-sally!seismo!allegra!mp From: mp@allegra.UUCP (Mark Plotnick) Newsgroups: net.lang.c Subject: Re: C Compiler bug Message-ID: <6224@allegra.UUCP> Date: Mon, 21-Jul-86 14:35:06 EDT Article-I.D.: allegra.6224 Posted: Mon Jul 21 14:35:06 1986 Date-Received: Wed, 23-Jul-86 19:13:44 EDT References: <501@bunny.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 10 The i /= f and i *= f bugs occur in the 4.3bsd-beta and 4.2bsd compilers (I don't know about pre-4.2). The bug is that the computation is done in integer rather than floating point. The 4.3bsd and System V VAX compilers do the right thing. We first noticed this bug on a 4.3bsd-beta system, when we saw "i *= 0.7" compile into "clrl _i". Incorrect code, but it's sure fast! Mark Plotnick allegra!mp