This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A long long int bug


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]