projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35907e9
)
Pacify PVS-Studio by changing the type rather than doing a cast, a tweak
author
Duncan Sands
<baldrick@free.fr>
Tue, 21 Aug 2012 16:20:37 +0000
(16:20 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Tue, 21 Aug 2012 16:20:37 +0000
(16:20 +0000)
suggested by David Blaikie.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162286
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Bitcode/BitstreamWriter.h
patch
|
blob
|
history
diff --git
a/include/llvm/Bitcode/BitstreamWriter.h
b/include/llvm/Bitcode/BitstreamWriter.h
index 65933a28e43d3bb5b2c640e9fbfb8674b0472fec..dea118f98ed2f944323cf2a42332f032bffc34c3 100644
(file)
--- a/
include/llvm/Bitcode/BitstreamWriter.h
+++ b/
include/llvm/Bitcode/BitstreamWriter.h
@@
-172,7
+172,7
@@
public:
if ((uint32_t)Val == Val)
return EmitVBR((uint32_t)Val, NumBits);
- uint
64_t Threshold = uint64_t(1U << (NumBits-1)
);
+ uint
32_t Threshold = 1U << (NumBits-1
);
// Emit the bits with VBR encoding, NumBits-1 bits at a time.
while (Val >= Threshold) {