glsl: Ensure 64bits shift is used.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 8 Jan 2016 14:03:38 +0000 (14:03 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 8 Jan 2016 20:06:59 +0000 (20:06 +0000)
commit208bfc493debe0344d0b9cb93975981f14412628
tree65367a25f4068e0b85832ac3b64c553702a41370
parente378184d9c31a4b8f67cf1b75f401f2d5c54782a
glsl: Ensure 64bits shift is used.

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?)`.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/link_varyings.cpp