Fix MSVC warning about shift operator precedence
authorPyry Haulos <phaulos@google.com>
Fri, 22 May 2015 19:46:20 +0000 (12:46 -0700)
committerPyry Haulos <phaulos@google.com>
Fri, 22 May 2015 19:46:20 +0000 (12:46 -0700)
Change-Id: Ifc5014f667b0bec7501687da29ec8a0285139366

framework/common/tcuFloat.hpp

index 3908ee1..78f4a25 100644 (file)
@@ -264,7 +264,7 @@ Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::convert
                const int                       eMin    = 1 - ExponentBias;
                const int                       eMax    = ((1<<ExponentBits)-2) - ExponentBias;
 
-               const StorageType       s               = StorageType(other.signBit()) << StorageType(ExponentBits+MantissaBits); // \note Not sign, but sign bit.
+               const StorageType       s               = StorageType((StorageType(other.signBit())) << (StorageType(ExponentBits+MantissaBits))); // \note Not sign, but sign bit.
                int                                     e               = other.exponent();
                deUint64                        m               = other.mantissa();