c/9502: shift of long long broken
Graham Stott
graham.stott@btinternet.com
Wed Jan 29 18:36:00 GMT 2003
The following reply was made to PR c/9502; it has been noted by GNATS.
From: Graham Stott <graham.stott@btinternet.com>
To: roger.dahl@am.sony.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/9502: shift of long long broken
Date: Wed, 29 Jan 2003 18:27:30 +0000
Not a bug your example is broken.
You are shifting "1" which is an int.
The fact that "a" is long long make no difference here.
You need to use 1LL to specify that is a long long "1".
Graham
More information about the Gcc-prs
mailing list