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


On Thu, Feb 26, 1998 at 06:55:12PM -0800, H.J. Lu wrote:
> foo.c:7: warning: left shift count >= width of type
>     x = 1UL << 33UL;
>     if (x == 0)
>       abort ();

Not a bug.  Use 1ULL.


r~


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