[geeks] Quick C question

Greg A. Woods woods at weird.com
Wed Jul 24 23:02:55 CDT 2002


[ On Wednesday, July 24, 2002 at 23:48:56 (-0400), Joshua D Boyd wrote: ]
> Subject: [geeks] Quick C question
>
> In the belief that good code should compile without even warnings, I
> can't figure out how to make G++ stop warning about this line:
> 
> s = s * 2891336453 + 1;
> 
> The warning is: 
> 
> decimal integer constant is so large that it is unsigned

	s = s * 2891336453UL + 1;


-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods at ieee.org>;           <woods at robohack.ca>
Planix, Inc. <woods at planix.com>; VE3TCP; Secrets of the Weird <woods at weird.com>



More information about the geeks mailing list