From 3c97bbcc018e51bb80587df4951ebcfd16bb556e Mon Sep 17 00:00:00 2001 From: jp0317 Date: Wed, 20 Nov 2024 05:04:11 +0000 Subject: [PATCH] use wrapping_shl --- parquet/src/thrift.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parquet/src/thrift.rs b/parquet/src/thrift.rs index 51ab2c8600b4..b216fec6f3e7 100644 --- a/parquet/src/thrift.rs +++ b/parquet/src/thrift.rs @@ -67,7 +67,7 @@ impl<'a> TCompactSliceInputProtocol<'a> { let mut shift = 0; loop { let byte = self.read_byte()?; - in_progress |= ((byte & 0x7F) as u64) << shift; + in_progress |= ((byte & 0x7F) as u64).wrapping_shl(shift); shift += 7; if byte & 0x80 == 0 { return Ok(in_progress);