# HG changeset patch # User Alain Mazy # Date 1778516751 -7200 # Node ID bf0499be72130d129e3ce757f3e0de0ad57b1da8 # Parent 1e3cecbb1310bc5725e1b18ec00929504a571d41 fix unit tests diff -r 1e3cecbb1310 -r bf0499be7213 OrthancFramework/Sources/Toolbox.cpp --- a/OrthancFramework/Sources/Toolbox.cpp Mon May 11 18:16:04 2026 +0200 +++ b/OrthancFramework/Sources/Toolbox.cpp Mon May 11 18:25:51 2026 +0200 @@ -3022,7 +3022,7 @@ for (size_t i = 0; i < converted.size(); i++) { - char c = converted[i]; + unsigned char c = converted[i]; bool allowRepetitions = true; if (isspace(c) || @@ -3058,14 +3058,14 @@ if (allowRepetitions) { - result.push_back(c); + result.push_back(static_cast(c)); } else { if (result.empty() || - result[result.size() - 1] != c) + result[result.size() - 1] != static_cast(c)) { - result.push_back(c); + result.push_back(static_cast(c)); } } }