Skip to content
Snippets Groups Projects
Commit d232ac54 authored by Duncan Sands's avatar Duncan Sands
Browse files

Pacify PVS-Studio by changing the type rather than doing a cast, a tweak

suggested by David Blaikie.

llvm-svn: 162286
parent db3da83b
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ public:
if ((uint32_t)Val == Val)
return EmitVBR((uint32_t)Val, NumBits);
uint64_t Threshold = uint64_t(1U << (NumBits-1));
uint32_t Threshold = 1U << (NumBits-1);
// Emit the bits with VBR encoding, NumBits-1 bits at a time.
while (Val >= Threshold) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment