OSDN Git Service

Fix bit shift compilation
authorAlexis Hetu <sugoi@google.com>
Tue, 18 Aug 2015 19:28:27 +0000 (15:28 -0400)
committerAlexis Hétu <sugoi@google.com>
Tue, 25 Aug 2015 17:10:21 +0000 (17:10 +0000)
commit92ab1986938356a7b431034b9d4ea4bf4efaf53e
tree2ad56ea7655783b0031a877f8b7c59a796ac394a
parentd9d27bbe1ce0e866262f84395edbeb4108720684
Fix bit shift compilation

Bit shifts compilation was failing when the types were a mismatch,
but shifting a uint by an int (or vice versa) is allowed, so types
may not match, and it's fine, as long as both are integer types.

Change-Id: I86c52a572625b1d09803b0a8b887a63756544101
Reviewed-on: https://swiftshader-review.googlesource.com/3887
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/compiler/Intermediate.cpp