File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
llvm/include/llvm/Bitstream Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ class BitstreamWriter {
239
239
240
240
// Emit the bits with VBR encoding, NumBits-1 bits at a time.
241
241
while (Val >= Threshold) {
242
- Emit ((Val & ((1 << (NumBits-1 ))-1 )) | (1 << (NumBits-1 )), NumBits);
242
+ Emit ((Val & ((1U << (NumBits - 1 )) - 1 )) | (1U << (NumBits - 1 )),
243
+ NumBits);
243
244
Val >>= NumBits-1 ;
244
245
}
245
246
@@ -255,7 +256,8 @@ class BitstreamWriter {
255
256
256
257
// Emit the bits with VBR encoding, NumBits-1 bits at a time.
257
258
while (Val >= Threshold) {
258
- Emit (((uint32_t )Val & ((1 << (NumBits - 1 )) - 1 )) | (1 << (NumBits - 1 )),
259
+ Emit (((uint32_t )Val & ((1U << (NumBits - 1 )) - 1 )) |
260
+ (1U << (NumBits - 1 )),
259
261
NumBits);
260
262
Val >>= NumBits-1 ;
261
263
}
You can’t perform that action at this time.
0 commit comments