emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: integer overflow


From: Johan Bockgård
Subject: Re: integer overflow
Date: Sun, 07 Mar 2010 20:05:11 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.93 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Glenn Morris <address@hidden> writes:
>
>> I don't really understand it. In a 32-bit Emacs:
>>
>> (1+ 536870911) -536870912
>> (+ 2 536870911) -536870911
>> (1+ 536870912)  536870913.0
>> (1+ 4294967295) overflow
>> (1+ 4294967295.0) 4294967296.0
>>
>> Can you summarize how it's supposed to work?
>
> The change affects the Lisp reader: reading "536870912" or any larger
> number now gives you a float Lisp object

or an error if the integer is larger than 32 bits, as the fourth example
shows.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]