Skip to content

Commit

Permalink
fix build error on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
wevsty authored and Flamefire committed Aug 13, 2023
1 parent aab426a commit 0552ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/locale/util/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace boost { namespace locale { namespace util {
/// Cast an unsigned char to a (possibly signed) char avoiding implementation defined behavior
constexpr char to_char(unsigned char c)
{
return static_cast<char>((c - std::numeric_limits<char>::min()) + std::numeric_limits<char>::min());
return static_cast<char>((c - (std::numeric_limits<char>::min)()) + (std::numeric_limits<char>::min)());
}

}}} // namespace boost::locale::util
Expand Down

0 comments on commit 0552ffc

Please sign in to comment.