Re: [Mesa-dev] [PATCH 2/2] glsl: Ensure 64bits shift is used.

2016-01-08 Thread Brian Paul
On 01/08/2016 07:08 AM, Jose Fonseca wrote: I believe that `1u << x`, where x >= 32 yields undefined results according to the C standard. Particularly MSVC says `warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)`. --- src/glsl/link_varyin

[Mesa-dev] [PATCH 2/2] glsl: Ensure 64bits shift is used.

2016-01-08 Thread Jose Fonseca
I believe that `1u << x`, where x >= 32 yields undefined results according to the C standard. Particularly MSVC says `warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)`. --- src/glsl/link_varyings.cpp | 6 +++--- 1 file changed, 3 insertions