Skip to content

Commit

Permalink
add assert Joe suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Jan 17, 2025
1 parent f994fae commit f2485a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/expr/src/scalar/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,7 @@ fn get_bit<'a>(a: Datum<'a>, b: Datum<'a>) -> Result<Datum<'a>, EvalError> {
.get(byte_index)
.map(|b| (*b >> bit_index) & 1)
.ok_or(err)?;
assert!(i == 0 || i == 1);
Ok(Datum::from(i32::from(i)))
}

Expand Down

0 comments on commit f2485a9

Please sign in to comment.