mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
cmSystemTools: Fix -Wformat warning in EncodeURL
This commit is contained in:
@@ -4165,7 +4165,7 @@ std::string cmSystemTools::EncodeURL(std::string const& in, bool escapeSlashes)
|
||||
case ' ':
|
||||
case '=':
|
||||
case '%':
|
||||
snprintf(hexCh, sizeof(hexCh), "%%%02X", static_cast<int>(c));
|
||||
snprintf(hexCh, sizeof(hexCh), "%%%02X", static_cast<unsigned int>(c));
|
||||
break;
|
||||
case '/':
|
||||
if (escapeSlashes) {
|
||||
|
||||
Reference in New Issue
Block a user