[Ns-developers] Hot to compare two uint64_t with NS_TEST_EXPECT_MSG_EQ
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Thu Aug 19 23:18:28 PDT 2010
On Thu, 2010-08-19 at 21:44 +0200, Mirko Banchi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all, i need in a test to compare two uint64_t values with the macro
> NS_TEST_EXPECT_MSG_EQ but the compiler is not happy of this :( the
> error i obtain is :
>
> integer constant is too large for ‘long’ type.
>
> What is the way to do that?
append the LL keyword at the end of your constant value. i.e.,
uint64_t f = 168LL;
Mathieu
More information about the Ns-developers
mailing list