result of 32-bit shift implicitly converted to 64 bits

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

result of 32-bit shift implicitly converted to 64 bits

eugeny gladkih
Hi,

windows x64:

lua-5.3.2/src/ltable.c(366): warning C4334: '<<': result of 32-bit shift
implicitly converted to 64 bits (was 64-bit shift intended?)
lua-5.3.2/src/ltable.c(418): warning C4334: '<<': result of 32-bit shift
implicitly converted to 64 bits (was 64-bit shift intended?)

is it what we want?


Reply | Threaded
Open this post in threaded view
|

Re: result of 32-bit shift implicitly converted to 64 bits

Daurnimator
On 1 June 2016 at 20:53, eugeny gladkih <[hidden email]> wrote:

> Hi,
>
> windows x64:
>
> lua-5.3.2/src/ltable.c(366): warning C4334: '<<': result of 32-bit shift
> implicitly converted to 64 bits (was 64-bit shift intended?)
> lua-5.3.2/src/ltable.c(418): warning C4334: '<<': result of 32-bit shift
> implicitly converted to 64 bits (was 64-bit shift intended?)
>
> is it what we want?

This has been reported before and is a non-sensicle warning from your compiler.
e.g. see http://lua-users.org/lists/lua-l/2010-10/msg00685.html

If we try and workarond it, it makes other compilers complain with
their own warnings.