non-repeatable bug? [Re: nonportable code or incorrect compilers?]

Ken Yap ken
Sat Jun 25 09:55:19 AEST 1988


I can't repeat your problem. What OS version have you? What compilers?

Script started on Fri Jun 24 19:49:06 1988
cursa.cs.rochester.edu% cat y.c
#define	DEFCONST	1.05
main()
{
	int	count = 800;

	printf("count is %d, ", count);
	count *= DEFCONST;
	printf("now %d\n", count);
}
cursa.cs.rochester.edu% cc -o y y.c
cursa.cs.rochester.edu% ./y
count is 800, now 840
cursa.cs.rochester.edu%
script done on Fri Jun 24 19:49:30 1988

Cursa is a Sun 3/50 running SunOS 3.4. On a Vax 11/750 running BSD 4.3
it gives

count is 800, now 839

	Ken



More information about the Comp.std.c mailing list