i = i * f vs. i *= f (definite bug!)

hansen at pegasus.UUCP hansen at pegasus.UUCP
Tue Apr 17 06:49:15 AEST 1984


I waited a couple of days before following up on this question to see if
anyone else posted a reply. None has so far that I've seen, so here goes.

The reported problem:

    integer *= float	is not the same as	integer = integer * float

This is indeed a definite bug which has been around for many a moon. (It has
been fixed in the System V compiler.) Dennis Ritchie himself commented on
this very same problem in this very same forum last fall, acknowledging that
it was a bug. Fix those compilers!

					Tony Hansen
					pegasus!hansen



More information about the Comp.lang.c mailing list