Skip to content

Commit a1836b0

Browse files
committed
fix type deduction on windows
1 parent 90704ee commit a1836b0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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: 2022-10-22 15:47:34.253072
4+
// Generated: 2022-10-23 14:46:20.073436
55
// ----------------------------------------------------------
66
// This file is an amalgamation of multiple different files.
77
// You probably shouldn't edit it directly.
@@ -7775,7 +7775,7 @@ struct CachedPrefix : public detail::CachedSimilarityBase<CachedPrefix<CharT1>,
77757775
template <typename InputIt2>
77767776
int64_t maximum(detail::Range<InputIt2> s2) const
77777777
{
7778-
return std::max(static_cast<int64_t>(s1.size()), s2.size());
7778+
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
77797779
}
77807780

77817781
template <typename InputIt2>
@@ -7898,7 +7898,7 @@ struct CachedPostfix : public detail::CachedSimilarityBase<CachedPostfix<CharT1>
78987898
template <typename InputIt2>
78997899
int64_t maximum(detail::Range<InputIt2> s2) const
79007900
{
7901-
return std::max(static_cast<int64_t>(s1.size()), s2.size());
7901+
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
79027902
}
79037903

79047904
template <typename InputIt2>

rapidfuzz/distance/Postfix.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct CachedPostfix : public detail::CachedSimilarityBase<CachedPostfix<CharT1>
8080
template <typename InputIt2>
8181
int64_t maximum(detail::Range<InputIt2> s2) const
8282
{
83-
return std::max(static_cast<int64_t>(s1.size()), s2.size());
83+
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
8484
}
8585

8686
template <typename InputIt2>

rapidfuzz/distance/Prefix.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct CachedPrefix : public detail::CachedSimilarityBase<CachedPrefix<CharT1>,
8080
template <typename InputIt2>
8181
int64_t maximum(detail::Range<InputIt2> s2) const
8282
{
83-
return std::max(static_cast<int64_t>(s1.size()), s2.size());
83+
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
8484
}
8585

8686
template <typename InputIt2>

0 commit comments

Comments
 (0)