Jun 3, 2010

Uint64 Constants

If we write uint64 a = 0xffffffffffffffff;, the compiler often complains:
error: integer constant is too large for ‘long’ type
What we need is to add the LLU suffix: uint64 a = 0xffffffffffffffffLLU;

No comments: