From: mdw Date: Sun, 13 Jan 2002 19:51:34 +0000 (+0000) Subject: Fix division-by-zero bug translating @MPW_MAX@ to an @mp@. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/e6991bb2f4dfd764fddb29b8f535550a844444ff Fix division-by-zero bug translating @MPW_MAX@ to an @mp@. --- diff --git a/tests/mpint b/tests/mpint index 771ea0d..c4faa39 100644 --- a/tests/mpint +++ b/tests/mpint @@ -1,6 +1,6 @@ # Test vectors for conversion between MP ints and C ints # -# $Id: mpint,v 1.3 2000/07/09 21:33:54 mdw Exp $ +# $Id: mpint,v 1.4 2002/01/13 19:51:34 mdw Exp $ # The tests look messy because I'm fighting with atoi here as well as the # integer conversion routines I'm trying to test. @@ -11,6 +11,7 @@ fromuint { -5 0xfffffffb; 0x7fffffff 0x7fffffff; 0x80000000 0x80000000; # Bastard torture test + 0xffffffff 0xffffffff; } fromint { @@ -27,6 +28,7 @@ touint { -5 -5; 0x7fffffff 0x7fffffff; 0x80000000 -0x80000000; # Bastard torture test + 0xffffffff 0xffffffff; } toint {