OSDN Git Service

Fixed 'truncation of constant value' warning
authorAlexis Hetu <sugoi@google.com>
Fri, 4 Aug 2017 15:48:17 +0000 (11:48 -0400)
committerAlexis Hétu <sugoi@google.com>
Fri, 4 Aug 2017 16:58:50 +0000 (16:58 +0000)
Change-Id: I4e0e956bd34f5ec2a3c38208cb99ac476ec26623
Reviewed-on: https://swiftshader-review.googlesource.com/11290
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Reactor/SubzeroReactor.cpp

index 7e607d9..9433c4c 100644 (file)
@@ -2838,7 +2838,7 @@ namespace sw
                {
                        #if defined(__i386__) || defined(__x86_64__)
                                // SSE2 doesn't support byte vector shifts, so shift as shorts and recombine.
-                               RValue<Short4> hi = (As<Short4>(lhs) >> rhs) & Short4(0xFF00);
+                               RValue<Short4> hi = (As<Short4>(lhs) >> rhs) & Short4(0xFF00u);
                                RValue<Short4> lo = As<Short4>(As<UShort4>((As<Short4>(lhs) << 8) >> rhs) >> 8);
 
                                return As<SByte8>(hi | lo);