[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fix
From: |
Helmut Eller |
Subject: |
bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum)) |
Date: |
Sat, 05 Dec 2009 16:18:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
* Eli Zaretskii [2009-12-05 15:25+0100] writes:
>> From: Helmut Eller <eller.helmut@gmail.com>
>> 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? I assumed that longs are supposed to be as
wide as pointers.
Helmut