[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible bug in MS_ASMTRICK? (Lua 5.2)
- From: Peter Cawley <lua@...>
- Date: Sun, 21 Apr 2013 21:32:47 +0100
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.