[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 7 Apr 2014 16:41:23 -0300
> Just curious, how does lua deal with the undefined bitwise (shift) operations on signed integers, like shifting a 1 bit into the most significant (sign) bit of a signed int.
>
> Also, note: http://www.lua.org/work/doc/manual.html#3.4.2
We do not use signed shifts. (In this work version one slipped in, in
the implementation of string.packinteger, but we are going to remove
it.)
> The sentence, "Both right and left shifts fill with zeros the vacant bits." is slightly awkward, "Both right and left shifts fill the vacant bits with zeros."
Thanks.
-- Roberto