Skip to content

Commit

Permalink
use wrapping_shl
Browse files Browse the repository at this point in the history
  • Loading branch information
jp0317 committed Nov 20, 2024
1 parent a88bc81 commit 3c97bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parquet/src/thrift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c97bbc

Please sign in to comment.