mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
graphics/clang-uml: Add patch to fix build on 134arm64
clang-uml-0.6.1/thirdparty/indicators/indicators.hpp:1427:35: error: comparison of integers of different signs: 'wchar_t' and 'const int' [-Werror,-Wsign-compare] 1427 | if (ucs < table[0].first || ucs > table[max].last) | ~~~ ^ ~~~~~~~~~~~~~~~ Reported by: pkg-fallout
This commit is contained in:
parent
f79c9c747f
commit
4a704f0d9e
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
--- thirdparty/indicators/indicators.hpp.orig 2025-03-05 16:32:09 UTC
|
||||||
|
+++ thirdparty/indicators/indicators.hpp
|
||||||
|
@@ -1415,8 +1415,8 @@ struct interval {
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct interval {
|
||||||
|
- int first;
|
||||||
|
- int last;
|
||||||
|
+ wchar_t first;
|
||||||
|
+ wchar_t last;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* auxiliary function for binary search in interval table */
|
||||||
|
@@ -1666,7 +1666,7 @@ static inline std::wstring utf8_decode(const std::stri
|
||||||
|
setlocale(LC_ALL, curLocale.c_str());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
-#else
|
||||||
|
+#else
|
||||||
|
static inline std::wstring utf8_decode(const std::string& s) {
|
||||||
|
auto r = setlocale(LC_ALL, "");
|
||||||
|
std::string curLocale;
|
Loading…
Add table
Reference in a new issue