64bit integer literals on 32bit platforms
paulkoning at comcast.net
Thu Oct 29 20:27:11 UTC 2015
> On Oct 29, 2015, at 5:23 AM, Gereon Kremer <gereon.kremer at cs.rwth-aachen.de> wrote:
> Signed PGP part
> We are using gmp in a library project that is supposed to work on both
> 32bit and 64bit platforms.
> However, we ran into problem when we used integer literals that are
> larger than 2^32 (say 10000000000).
That by itself will get you warning messages, at least in more recent versions of GCC, because you have a literal too large for its type. If you meant long long, you need the LL suffix.
More information about the gmp-bugs