Skip to content

Commit 89b83a1

Browse files
committed
mod warning: shift count >= width of type [-Wshift-count-overflow]
const uint32_t mask = (1U << 32) - 1;
1 parent f60b60c commit 89b83a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/push_socket/push_frame_serialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ uint32_t TIGER_API::PushFrameDecoder::get_frame_size() const
4444

4545
uint32_t TIGER_API::PushFrameDecoder::decode_varint()
4646
{
47-
const uint32_t mask = (1U << 32) - 1;
47+
const uint32_t mask = (1ULL << 32) - 1;
4848
uint32_t result = 0;
4949
int shift = 0;
5050

0 commit comments

Comments
 (0)