Suppress an MSVC warning about 32bit and 64bit shift.

This commit is contained in:
Tsuda Kageyu 2016-10-28 14:46:48 +09:00
parent b6d21ce890
commit fea7e3d4a2

View File

@ -120,7 +120,7 @@ public:
if(!addOne)
return ByteVector(vint.data() + vint.size() - byteSize, byteSize);
ulli firstByte = (1 << (vint.size() - byteSize));
ulli firstByte = (1ULL << (vint.size() - byteSize));
// The most significant byte loses #bytSize bits for storing information.
// Therefore, we might need to increase byteSize.
if(number >= (firstByte << (8 * (byteSize - 1))) && byteSize < vint.size())