This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-3.3.2 says error: integer constant is too large for "long" type


>I'm looking for a clue as to why I get an error with my crosstool
>generated toolchain, but not with any other.  Here is my source file,
>test.c:
>
>  int main ()
>  {
>    unsigned long long int test = 0x0008000000000000;
>  }

Try:

>    unsigned long long int test = 0x0008000000000000LL;

-- 
Peter Barada
peter@the-baradas.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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