Skip to content

Commit 8249509

Browse files
committed
fix type deduction
1 parent 1678beb commit 8249509

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

extras/rapidfuzz_amalgamated.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
22
// SPDX-License-Identifier: MIT
33
// RapidFuzz v1.0.2
4-
// Generated: 2023-10-09 03:12:47.555069
4+
// Generated: 2023-10-09 03:30:56.866043
55
// ----------------------------------------------------------
66
// This file is an amalgamation of multiple different files.
77
// You probably shouldn't edit it directly.
@@ -5611,14 +5611,14 @@ void jaro_similarity_simd(Range<double*> scores, const detail::BlockPatternMatch
56115611
auto s2_cur = s2;
56125612

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

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

5621-
if (Bound > maxBound) maxBound = Bound;
5621+
if (Bound > maxBound) maxBound = static_cast<ptrdiff_t>(Bound);
56225622

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

rapidfuzz/distance/Jaro_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,14 @@ void jaro_similarity_simd(Range<double*> scores, const detail::BlockPatternMatch
495495
auto s2_cur = s2;
496496

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

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

505-
if (Bound > maxBound) maxBound = Bound;
505+
if (Bound > maxBound) maxBound = static_cast<ptrdiff_t>(Bound);
506506

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

0 commit comments

Comments
 (0)