PATCH: Bad signed int to long long conversion

H.J. Lu hjl.tools at gmail.com
Thu Dec 1 02:53:39 CET 2011


According to

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50066

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

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

-- 
H.J.
-------------- 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: <http://gmplib.org/list-archives/gmp-bugs/attachments/20111130/0f93a9ec/attachment.bin>


More information about the gmp-bugs mailing list