Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site elsie.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!teddy!panda!talcott!harvard!seismo!umcp-cs!cvl!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: net.unix-wizards
Subject: Want fix for 4.?bsd unsigned -> double conversion bug
Message-ID: <4132@elsie.UUCP>
Date: Tue, 8-Jan-85 14:49:56 EST
Article-I.D.: elsie.4132
Posted: Tue Jan  8 14:49:56 1985
Date-Received: Sat, 12-Jan-85 00:21:30 EST
Organization: NIH-LEC, Bethesda, MD
Lines: 26

I just bumped up against a new one (to me) in 4.1bsd and 4.2bsd.  The command
generated by this source:

	#include 

	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