[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hexadecimal representation of a negative number
From: |
Ludovic Courtès |
Subject: |
Re: Hexadecimal representation of a negative number |
Date: |
Wed, 05 Oct 2011 14:40:05 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Hi,
Brian Mokrzycki <address@hidden> skribis:
> guile> (number->string #xFFFFFFFFFFFFFFFF 16)
>
> Resolves to
>
> "-1" in Guile 1.8.7
> "ffffffffffffffff" in Guile 1.6.4
I think this is a bug in 1.8, which 2.0 doesn’t have, if using it is an
option for you.
Would you like to try to find the source of the bug in 1.8 and/or browse
the change log for libguile/numbers.c in 2.0 to find the fix? (The
latter may prove to be tedious, though...)
Thanks,
Ludo’.