Want fix for 4.?bsd unsigned -> double conversion bug
Arthur David Olson
ado at elsie.UUCP
Wed Jan 9 05:49:56 AEST 1985
I just bumped up against a new one (to me) in 4.1bsd and 4.2bsd. The command
generated by this source:
#include <stdio.h>
double d;
unsigned u;
main()
{
u = ~0;
printf("%u\n", u);
d = u;
printf("%f\n", d);
}
produces this output:
4294967295
-1.000000
If any netnik has the compiler fix to straighten this out and/or the lint trap
to let me know when things are going to go haywire, I'd appreciate getting mail.
--
..decvax!seismo!elsie!ado (country code 1)(301) 496-5688
DEC, VAX and Elsie are Digital Equipment and Borden trademarks
More information about the Comp.unix.wizards
mailing list