Skip to content

Commit

Permalink
fix type deduction on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Oct 23, 2022
1 parent 90704ee commit a1836b0
Show file tree
Hide file tree
Showing 3 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: 2022-10-22 15:47:34.253072
// Generated: 2022-10-23 14:46:20.073436
// ----------------------------------------------------------
// This file is an amalgamation of multiple different files.
// You probably shouldn't edit it directly.
Expand Down Expand Up @@ -7775,7 +7775,7 @@ struct CachedPrefix : public detail::CachedSimilarityBase<CachedPrefix<CharT1>,
template <typename InputIt2>
int64_t maximum(detail::Range<InputIt2> s2) const
{
return std::max(static_cast<int64_t>(s1.size()), s2.size());
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
}

template <typename InputIt2>
Expand Down Expand Up @@ -7898,7 +7898,7 @@ struct CachedPostfix : public detail::CachedSimilarityBase<CachedPostfix<CharT1>
template <typename InputIt2>
int64_t maximum(detail::Range<InputIt2> s2) const
{
return std::max(static_cast<int64_t>(s1.size()), s2.size());
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
}

template <typename InputIt2>
Expand Down
2 changes: 1 addition & 1 deletion rapidfuzz/distance/Postfix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct CachedPostfix : public detail::CachedSimilarityBase<CachedPostfix<CharT1>
template <typename InputIt2>
int64_t maximum(detail::Range<InputIt2> s2) const
{
return std::max(static_cast<int64_t>(s1.size()), s2.size());
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
}

template <typename InputIt2>
Expand Down
2 changes: 1 addition & 1 deletion rapidfuzz/distance/Prefix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct CachedPrefix : public detail::CachedSimilarityBase<CachedPrefix<CharT1>,
template <typename InputIt2>
int64_t maximum(detail::Range<InputIt2> s2) const
{
return std::max(static_cast<int64_t>(s1.size()), s2.size());
return std::max(static_cast<ptrdiff_t>(s1.size()), s2.size());
}

template <typename InputIt2>
Expand Down

0 comments on commit a1836b0

Please sign in to comment.