PATCH: Bad signed int to long long conversion

H.J. Lu at
Thu Dec 1 02:53:39 CET 2011

According to

vl = (mp_limb_t) (unsigned long int) (val >= 0 ? val : -val);

is undefined when val is LONG_MIN.  The enclosed patch
fixes it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-4.3.2-ll-1.patch
Type: text/x-diff
Size: 3063 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list