Browse Source

cmSystemTools: Fix -Wformat warning in EncodeURL

Brad King 5 months ago
parent
commit
94930c47e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmSystemTools.cxx

+ 1 - 1
Source/cmSystemTools.cxx

@@ -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) {