mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Pacify PVS-Studio by changing the type rather than doing a cast, a tweak
suggested by David Blaikie. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35907e9862
commit
578d5f4b80
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user