unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum))
@ 2009-12-03 14:36 Helmut Eller
  2009-12-03 20:52 ` Stefan Monnier
  2011-09-18  9:47 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Helmut Eller @ 2009-12-03 14:36 UTC (permalink / raw)
  To: emacs-pretest-bug


(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






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-18 10:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 14:36 bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum)) Helmut Eller
2009-12-03 20:52 ` 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

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).