From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum)) Date: Sat, 05 Dec 2009 18:44:42 +0200 Message-ID: <83aaxxjrph.fsf@gnu.org> References: <83d42tjy4q.fsf@gnu.org> Reply-To: Eli Zaretskii , 5114@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260032955 30640 80.91.229.12 (5 Dec 2009 17:09:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 17:09:15 +0000 (UTC) To: Helmut Eller , 5114@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 18:09:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGy82-000364-Uj for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 18:09:07 +0100 Original-Received: from localhost ([127.0.0.1]:60664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGy82-00045K-Ka for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 12:09:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGy6X-0002lf-3F for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 12:07:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGy6S-0002hW-Go for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 12:07:32 -0500 Original-Received: from [199.232.76.173] (port=40621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGy6R-0002hF-VW for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 12:07:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36733) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGy6R-0006wW-Hz for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 12:07:27 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5H7P4X004520; Sat, 5 Dec 2009 09:07:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5Gt5as002766; Sat, 5 Dec 2009 08:55:05 -0800 Resent-Date: Sat, 5 Dec 2009 08:55:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 05 Dec 2009 16:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5114 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5114-submit@emacsbugs.donarmstrong.com id=B5114.12600316142286 (code B ref 5114); Sat, 05 Dec 2009 16:55:05 +0000 Original-Received: (at 5114) by emacsbugs.donarmstrong.com; 5 Dec 2009 16:46:54 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout22.012.net.il (mtaout22.012.net.il [80.179.55.172]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5GkqOY002283 for <5114@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 08:46:53 -0800 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KU600100UGY2600@a-mtaout22.012.net.il> for 5114@emacsbugs.donarmstrong.com; Sat, 05 Dec 2009 18:46:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KU60019MULW5600@a-mtaout22.012.net.il>; Sat, 05 Dec 2009 18:46:45 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 12:07:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33253 Archived-At: > From: Helmut Eller > Date: Sat, 05 Dec 2009 16:18:13 +0100 > Cc: > > * Eli Zaretskii [2009-12-05 15:25+0100] writes: > > >> From: Helmut Eller > >> Date: Sat, 05 Dec 2009 13:36:41 +0100 > >> Cc: 5114@emacsbugs.donarmstrong.com > >> > >> + else { > >> + unsigned long u = 0; > > > > This assumes that `unsigned long' is the same width as EMACS_INT. > > This could be false, e.g., with 64-bit MS-Windows. Isn't it better to > > use EMACS_INT instead? > > Using EMACS_UINT wouldn't hurt. Does MOST_POSITIVE_FIXNUM not fit in a > unsigned long on Windows? In the 32-bit Windows build, it does. In the 64-bit Windows build (which does not yet exist, since we don't yet support it), it will not, because MS in their infinite wisdom (probably because backward compatibility considerations wrt existing source code and headers) decided to use the LLP64 programming model. > I assumed that longs are supposed to be as wide as pointers. Not on 64-bit Windows, they don't.