lua-users home
lua-l archive

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


> 1) The macro twoto(x) defined as (1<<(x)) in lobject.h gives numerous
> warnings when building on MSVC for 64 bits platforms.
> The message is:
>    warning C4334: '<<' : result of 32-bit shift implicitly converted
> to 64 bits (was 64-bit shift intended?)

This is strange. As '1' is an int, the result from the shift should be
an int, too.

-- Roberto