Skip to content
Snippets Groups Projects
Commit ff8f8a74 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-02-27 12:08:26 by simonm]

Fix for the minBound case, obtained from GMP 2.
parent fd361be0
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ mpz_get_si (integer)
if (size > 0)
return integer->d[0] % ((mp_limb) 1 << (BITS_PER_MP_LIMB - 1));
else if (size < 0)
return -(integer->d[0] % ((mp_limb) 1 << (BITS_PER_MP_LIMB - 1)));
return ~((integer->d[0] - 1) % ((mp_limb) 1 << (BITS_PER_MP_LIMB - 1)));
else
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment