[net.unix-wizards] Want fix for 4.?bsd unsigned -> double conversion bug

ado@elsie.UUCP (Arthur David Olson) (01/08/85)

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