Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchao committed Aug 16, 2023
1 parent 632ccf2 commit fe6c73a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl GroupValues for GroupValuesRows {
self.hash_table[ht_offset] = self.hashes.len() + 1;
// also update hash for this slot so it can be used later
self.hashes.push(hash);
} else if self.hashes[offset as usize - 1] == hash {
} else if self.hashes[offset - 1] == hash {
// slot is not empty, and hash value match, now need to do equality
// check
self.need_equality_check[n_need_equality_check] = row_idx;
Expand Down Expand Up @@ -375,7 +375,7 @@ impl GroupValuesRows {
for i in 0..self.capacity {
let offset = *table_ptr.add(i);
if offset != 0 {
let hash = *hashes_ptr.add(offset as usize - 1);
let hash = *hashes_ptr.add(offset - 1);

let mut new_idx = hash as usize & new_bit_mask;
let mut num_iter = 0;
Expand Down

0 comments on commit fe6c73a

Please sign in to comment.