Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!eagle!allegra!alice!research!dmr From: dmr@research.UUCP Newsgroups: net.lang.c Subject: bug in type conversion Message-ID: <1021@research.UUCP> Date: Wed, 4-Jan-84 00:32:17 EST Article-I.D.: research.1021 Posted: Wed Jan 4 00:32:17 1984 Date-Received: Thu, 5-Jan-84 01:18:44 EST Lines: 14 Mike O'Brien points out that in the C compilers he has available, the expression i *= d; where i is int and d is double is evaluated in fixed point, and wonders why. The answer: it is a compiler bug. I fixed it in (a post V7 version) of the 11 compiler, and it is fixed in the current System V compiler (by "current" I mean the one I tried; I don't know what is being shipped at this instant.) The manual is reasonably clear and unambiguous on the point, but it's not surprising that people for search for definition problems when the compilers are unanimously wrong. Dennis Ritchie