This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A long long int bug
- To: egcs at cygnus dot com
- Subject: Re: A long long int bug
- From: root <jhpb at sarto dot gaithersburg dot md dot us>
- Date: 27 Feb 1998 23:33:23 -0500
- References: <February_27_1998_at_05_16_38_11567_Joseph_H._Buehler@altera>
> 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