Skip to content

Commit

Permalink
remove dead comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Apr 2, 2024
1 parent 8a156ae commit 5dadf2d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions locustdb-compression-utils/src/xor_float/double.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ pub fn decode(data: &[u8]) -> Result<Vec<f64>, Error> {
let mut last_trailing_zeros = 65u32;
let mut last_significant_bits = 0;
for decoded in &mut decoded[1..length] {
//match reader.read_bit().ok_or(Error::Eof)? {
match reader.read_int::<u8>(1).map_err(|_| Error::Eof)? {
0 => {
*decoded = f64::from_bits(last);
}
1 => {
//if reader.read_bit().ok_or(Error::Eof)? {
if reader.read_int::<u8>(1).map_err(|_| Error::Eof)? == 1u8 {
last_leading_zeros = reader.read_int(5).map_err(|_| Error::Eof)?;
last_significant_bits = reader.read_int::<u32>(6).map_err(|_| Error::Eof)? + 1;
Expand Down

0 comments on commit 5dadf2d

Please sign in to comment.