unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: "Göran Weinholt" <goran@weinholt.se>
Cc: 14879-done@debbugs.gnu.org
Subject: bug#14879: fixnum-width, greatest-fixnum and least-fixnum disagree
Date: Tue, 16 Jul 2013 17:41:41 -0400	[thread overview]
Message-ID: <87li5618tm.fsf@tines.lan> (raw)
In-Reply-To: <87ip0a61rk.fsf@industria.weinholt.se> ("Göran Weinholt"'s message of "Tue, 16 Jul 2013 16:02:55 +0200")

Göran Weinholt <goran@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





      reply	other threads:[~2013-07-16 21:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 14:02 bug#14879: fixnum-width, greatest-fixnum and least-fixnum disagree Göran Weinholt
2013-07-16 21:41 ` Mark H Weaver [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87li5618tm.fsf@tines.lan \
    --to=mhw@netris.org \
    --cc=14879-done@debbugs.gnu.org \
    --cc=goran@weinholt.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).