Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Dec 24, 2024
1 parent 6ec7699 commit 8d7490e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rapidfuzz/details/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ static inline size_t abs_diff(size_t a, size_t b)
template<typename TO, typename FROM>
TO opt_static_cast(const FROM &value)
{
if constexpr (std::is_same_v<TO, FROM>)
return value;
else
return static_cast<TO>(value);
return static_cast<TO>(value);
}

/**
Expand Down

0 comments on commit 8d7490e

Please sign in to comment.