mpz_get_si: possible undefined behaviour? [Was: Micro-GMP]
Torbjörn Granlund
tg at gmplib.org
Tue Dec 4 12:45:10 UTC 2018
Pedro Gimeno <gmpdevel at formauri.es> writes:
An assertion of LONG_MIN < -LONG_MAX should make the code safe in that case.
Does The Standard even guarantee thet there are about as many negative
and positive number?
I am really worried that GMP might not properly on a machine where
LONG_MIN = -17 while LONG_MAX = 2^32-18.
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-devel
mailing list