lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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