[bigint] Bug ? (Test suite fails on 64-bit)

Matt McCutchen <matt at mattmccutchen.net>
Tue May 11 22:41:24 PDT 2010


On Tue, 2010-05-11 at 20:12 -0500, ken wrote:
> uname -a
> Linux zilla 2.6.24-26-generic #1 SMP Tue Dec 1 17:55:03 UTC 2009 x86_64
> +GNU/Linux

> kdibble at zilla:~/development/bigint-2009.05.03$ ./run-testsuite
> --- testsuite.expected  2010-05-11 19:57:35.000000000 -0500
> +++ testsuite.out       2010-05-11 19:57:44.000000000 -0500
> @@ -3,24 +3,24 @@
>  Line 54: 10
>  Line 60: 0
>  Line 61: 0
> -Line 70: 17179869187
> -Line 71: 17179869187
> -Line 72: 17179869187
> -Line 75: 17179869187
> -Line 76: -17179869187
> +Line 70: 73786976294838206467
> +Line 71: 73786976294838206467
> +Line 72: 73786976294838206467
> +Line 75: 73786976294838206467
> +Line 76: -73786976294838206467
[...]
> Output is incorrect!
> Test suite failed!

Unfortunately, that's expected.  I hard-coded the test suite to expect a
32-bit machine, and I have not yet figured out how I want to extend it
to work on 64-bit machines or possibly machines with arbitrary word
sizes.  The library should still work correctly; if it does not, please
let me know.

-- 
Matt




More information about the bigint mailing list