Bug in rcc (SCO UNIX V.3.2/386)

Ohlhausen Abt.013.4 ohl at kivax.UUCP
Thu Feb 8 19:09:01 AEST 1990


I found a bug in rcc (AT&T C-compiler in SCO Unix V.3.2/386) which occurs when
using floating point constants with significant digits after the decimal point:

	float f;
	f = 0.1;
	printf("f = %f\n",f);

Output is: f = 1.000000

The bug is not in printf(), it's the assignment that goes wrong! Is there
already a fixed rcc out there? I can't believe that nobody found this 
terrible error yet. I've read this group for quite a while but didn't see
any mention about this.


--
Ralf Ohlhausen                     In all probability it's my opinion only!
Mannesmann Kienzle GmbH            ohl at kivax.uucp
7730 VS-Villingen                  Europe: ..!mcvax!unido!kivax!ohl
FRG                                USA:    ..!uunet!unido!kivax!ohl



More information about the Comp.unix.xenix mailing list