help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: const uint64_t initialization problem


From: Mike - EMAIL IGNORED
Subject: Re: const uint64_t initialization problem
Date: Thu, 07 Dec 2006 15:14:01 -0500
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table)

On Thu, 07 Dec 2006 19:54:18 +0100, Ulrich Eckhardt wrote:
[...]
> 
>   unsigned long long const foo = 0x0123456789abcdefull;
> 
> Note the 'ull' suffix for an unsigned long long.
> 
I slightly reorganized the code since my original post,
but, following your suggestion:

   MyClass::MyClass()
   :  mask_(0x003fffffffffffffull),
      sign_(0x0080000000000000ull)
   {
   }

works, where without the 'ull' it failed.
BTW uint64_t is a typedef on my system.

Thanks for your help.
Mike.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]