[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Comparing integer value with number on Lua v5.4.3 with LUA_FLOORN2I=1
- From: Andrew Gierth <andrew@...>
- Date: Wed, 13 Oct 2021 01:16:00 +0100
>>>>> "David" == David Capello <davidcapello@gmail.com> writes:
David> Hi,
David> I’m not sure if this is a proper fix, but it looks like v5.4.3
David> (and master branch) contains a bug if we define LUA_FLOORN2I=1
David> when we try to compare an integer value == a number. This is a
David> possible fix:
Surely you don't want 1 == 1.4 to compare true, whatever the float to
integer conversion mode you want to use.
--
Andrew.