A long long int bug

root jhpb@sarto.gaithersburg.md.us
Fri Feb 27 20:40:00 GMT 1998


> main ()
> {
>   unsigned long long int x;
> 
>   if (sizeof (x) > sizeof (int))
>   {
>     x = 1UL << 33UL;
>     if (x == 0)
>       abort ();
>   }
> 
>   return 0;
> }

It works OK if you use 1ULL.  Whether that is correct behavior I would
not venture to say.

Joe Buehler



More information about the Gcc mailing list