diff options
Diffstat (limited to 'xdelta3/xdelta3-second.h')
-rw-r--r-- | xdelta3/xdelta3-second.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-second.h b/xdelta3/xdelta3-second.h index 5fc93ed..b9830ab 100644 --- a/xdelta3/xdelta3-second.h +++ b/xdelta3/xdelta3-second.h | |||
@@ -33,7 +33,7 @@ static inline int xd3_decode_bits (xd3_stream *stream, | |||
33 | usize_t *valuep) | 33 | usize_t *valuep) |
34 | { | 34 | { |
35 | usize_t value = 0; | 35 | usize_t value = 0; |
36 | usize_t vmask = 1U << nbits; | 36 | usize_t vmask = 1 << nbits; |
37 | 37 | ||
38 | if (bits->cur_mask == 0x100) { goto next_byte; } | 38 | if (bits->cur_mask == 0x100) { goto next_byte; } |
39 | 39 | ||
@@ -215,7 +215,7 @@ static inline int xd3_encode_bits (xd3_stream *stream, | |||
215 | usize_t value) | 215 | usize_t value) |
216 | { | 216 | { |
217 | int ret; | 217 | int ret; |
218 | usize_t mask = 1U << nbits; | 218 | usize_t mask = 1 << nbits; |
219 | 219 | ||
220 | XD3_ASSERT (nbits > 0); | 220 | XD3_ASSERT (nbits > 0); |
221 | XD3_ASSERT (nbits < sizeof (usize_t) * 8); | 221 | XD3_ASSERT (nbits < sizeof (usize_t) * 8); |