Skip to content

Commit

Permalink
fix type deduction
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Oct 9, 2023
1 parent 1678beb commit 8249509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions extras/rapidfuzz_amalgamated.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
// SPDX-License-Identifier: MIT
// RapidFuzz v1.0.2
// Generated: 2023-10-09 03:12:47.555069
// Generated: 2023-10-09 03:30:56.866043
// ----------------------------------------------------------
// This file is an amalgamation of multiple different files.
// You probably shouldn't edit it directly.
Expand Down Expand Up @@ -5611,14 +5611,14 @@ void jaro_similarity_simd(Range<double*> scores, const detail::BlockPatternMatch
auto s2_cur = s2;

int64_t lastRelevantChar = 0;
int64_t maxBound = 0;
ptrdiff_t maxBound = 0;
unroll<int, vec_width>([&](auto i) {
int64_t s1_len = s1_lengths[result_index + i];
int64_t Bound = jaro_bounds(s1_len, s2_cur.size());

if (s1_len + Bound > lastRelevantChar) lastRelevantChar = s1_len + Bound;

if (Bound > maxBound) maxBound = Bound;
if (Bound > maxBound) maxBound = static_cast<ptrdiff_t>(Bound);

boundMaskSize_[i] = bit_mask_lsb<VecType>(static_cast<int>(2 * Bound));
boundMask_[i] = bit_mask_lsb<VecType>(static_cast<int>(Bound + 1));
Expand Down
4 changes: 2 additions & 2 deletions rapidfuzz/distance/Jaro_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,14 @@ void jaro_similarity_simd(Range<double*> scores, const detail::BlockPatternMatch
auto s2_cur = s2;

int64_t lastRelevantChar = 0;
int64_t maxBound = 0;
ptrdiff_t maxBound = 0;
unroll<int, vec_width>([&](auto i) {
int64_t s1_len = s1_lengths[result_index + i];
int64_t Bound = jaro_bounds(s1_len, s2_cur.size());

if (s1_len + Bound > lastRelevantChar) lastRelevantChar = s1_len + Bound;

if (Bound > maxBound) maxBound = Bound;
if (Bound > maxBound) maxBound = static_cast<ptrdiff_t>(Bound);

boundMaskSize_[i] = bit_mask_lsb<VecType>(static_cast<int>(2 * Bound));
boundMask_[i] = bit_mask_lsb<VecType>(static_cast<int>(Bound + 1));
Expand Down

0 comments on commit 8249509

Please sign in to comment.