-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#22240) boost 1.83.0: fix windows without NOMINMAX
- Loading branch information
1 parent
e712a50
commit 1c560e3
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 0552ffc29ff11e4fe130b7143ea6ac2bee7b15c6 Mon Sep 17 00:00:00 2001 | ||
From: wevsty <ty@wevs.org> | ||
Date: Sat, 12 Aug 2023 22:13:48 +0800 | ||
Subject: [PATCH] fix build error on MSVC | ||
|
||
--- | ||
boost/locale/util/string.hpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/boost/locale/util/string.hpp b/boost/locale/util/string.hpp | ||
index 9ab9521c..ba066bd4 100644 | ||
--- a/boost/locale/util/string.hpp | ||
+++ b/boost/locale/util/string.hpp | ||
@@ -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 |