From: Helmut Eller <eller.helmut@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum))
Date: Thu, 03 Dec 2009 15:36:27 +0100 [thread overview]
Message-ID: <m28wdkgm50.fsf@gmail.com> (raw)
(setq x (string-to-number (number-to-string most-positive-fixnum)))
(= most-positive-fixnum x) => nil
x is 2305843009213693440 but it should be most-positive-fixnum
which is 2305843009213693951.
The test
(= most-positive-fixnum
(string-to-number (number-to-string most-positive-fixnum)))
seems to work as expected on 32-bit machines but not so on 64 bit.
Helmut.
In GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu)
of 2009-12-03
configured using `configure '--without-x''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
next reply other threads:[~2009-12-03 14:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-03 14:36 Helmut Eller [this message]
2009-12-03 20:52 ` bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum)) Stefan Monnier
2009-12-05 12:36 ` Helmut Eller
2009-12-05 14:25 ` Eli Zaretskii
2009-12-05 15:18 ` Helmut Eller
2009-12-05 16:44 ` Eli Zaretskii
2011-09-18 9:47 ` Lars Magne Ingebrigtsen
2011-09-18 10:57 ` Leo
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/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28wdkgm50.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--cc=5114@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).