[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible bug in MS_ASMTRICK? (Lua 5.2)
- From: David Burgess <dburgess@...>
- Date: Mon, 22 Apr 2013 11:00:50 +1000
Another perspective on the fistp instruction in Lua; I have had it
running in Lua on Windows machines (server apps.) of various types and
various OS for close to 10 years. Nothing that I would call a bug.
On Mon, Apr 22, 2013 at 6:32 AM, Peter Cawley <lua@corsix.org> wrote:
> On Sun, Apr 21, 2013 at 9:26 PM, [ex] <exeqtor@gmail.com> wrote:
>>
>> the code in Lua:
>>
>> print(bit32.bor(9.9, 0)) -- prints 10, not 9
>
> Quoting http://www.lua.org/manual/5.2/manual.html#6.7:
>
> "each argument is ... truncated to an integer (in some unspecified way)"
>
> As such, while the code under MS_ASMTRICK gives different behaviour to
> the other code, both behaviours are compatible with the Lua language
> specification.
>
--
David Burgess