|
From: | Paul Eggert |
Subject: | bug#30408: Checking for loss of information on integer conversion |
Date: | Thu, 29 Mar 2018 11:09:45 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 03/29/2018 04:11 AM, Eli Zaretskii wrote:
I'd suggest, for a good measure, to have a variable which would force the conversion to floats, avoiding an error even without the trailing period. We can later remove that variable, or make it a no-op, if the danger of breaking existing code turns out low or non-existent.
OK, I did that, by installing the attached into master, after installing the proposed patch.
As a result, unless the user sets the new variable read-integer-overflow-as-float, the Lisp reader now rejects the program (format "%x" 2738188573457603759) by signaling an overflow error. As this was the basis of the original bug report, I'm marking the bug as done.
0001-New-experimental-variable-read-integer-overflow-as-f.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |