GNU bug report logs -
#14879
fixnum-width, greatest-fixnum and least-fixnum disagree
Previous Next
Reported by: Göran Weinholt <goran <at> weinholt.se>
Date: Tue, 16 Jul 2013 14:18:02 UTC
Severity: normal
Done: Mark H Weaver <mhw <at> netris.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14879 in the body.
You can then email your comments to 14879 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#14879
; Package
guile
.
(Tue, 16 Jul 2013 14:18:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Göran Weinholt <goran <at> weinholt.se>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Tue, 16 Jul 2013 14:18:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello schemers,
scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (fixnum-width)
$1 = 61
scheme@(guile-user)> (greatest-fixnum)
$2 = 2305843009213693951
scheme@(guile-user)> (least-fixnum)
$3 = -2305843009213693952
If the reported fixnum width is correct, then these should be the least
and greatest fixnums:
(- (expt 2 (- (fixnum-width) 1))) => -1152921504606846976
(- (expt 2 (- (fixnum-width) 1)) 1) => 1152921504606846975
If the reported least and greatest fixnums are correct, then the fixnum
width is actually 62.
Tested with 2.0.9.33-3bbca-dirty on an amd64 system.
Regards,
--
Göran Weinholt <goran <at> weinholt.se>
20 JUSTICE KENNEDY: That seems odd. I mean,
21 Microsoft doesn't say please buy our disk because it's
22 the prettiest disk in the business.
[Message part 2 (application/pgp-signature, inline)]
Reply sent
to
Mark H Weaver <mhw <at> netris.org>
:
You have taken responsibility.
(Tue, 16 Jul 2013 21:43:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Göran Weinholt <goran <at> weinholt.se>
:
bug acknowledged by developer.
(Tue, 16 Jul 2013 21:43:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 14879-done <at> debbugs.gnu.org (full text, mbox):
Göran Weinholt <goran <at> weinholt.se> writes:
> scheme@(guile-user)> (import (rnrs))
> scheme@(guile-user)> (fixnum-width)
> $1 = 61
> scheme@(guile-user)> (greatest-fixnum)
> $2 = 2305843009213693951
> scheme@(guile-user)> (least-fixnum)
> $3 = -2305843009213693952
>
> If the reported fixnum width is correct, then these should be the least
> and greatest fixnums:
>
> (- (expt 2 (- (fixnum-width) 1))) => -1152921504606846976
> (- (expt 2 (- (fixnum-width) 1)) 1) => 1152921504606846975
>
> If the reported least and greatest fixnums are correct, then the fixnum
> width is actually 62.
That's correct. Fixed in 06903786211afd9a554b8f009a37111f729607ee.
Thanks!
Mark
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 14 Aug 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 315 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.