Skip to content

Commit

Permalink
fix: remove unnecesary conversion to u16
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanboca committed Jan 22, 2025
1 parent 3d4f1e2 commit e002b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ where
for i in 0..L {
max_scores_vec[i] = all_time_max_score[i].into();
if haystacks[i] == needle_str {
max_scores_vec[i] += EXACT_MATCH_BONUS as u16;
max_scores_vec[i] += EXACT_MATCH_BONUS;
}
}

Expand Down

0 comments on commit e002b08

Please sign in to comment.