From fea7e3d4a2ea438092a7b44aa5ad20a8d20aea74 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Fri, 28 Oct 2016 14:46:48 +0900 Subject: [PATCH] Suppress an MSVC warning about 32bit and 64bit shift. --- taglib/ebml/ebmlelement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/ebml/ebmlelement.cpp b/taglib/ebml/ebmlelement.cpp index fde0bc21..1fcbdba5 100644 --- a/taglib/ebml/ebmlelement.cpp +++ b/taglib/ebml/ebmlelement.cpp @@ -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())