]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/toolutil/filetools.cpp
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / filetools.cpp
index 176a791b0df853040d6c4291a01dbebb5b3cf79f..6e88c94b5200b5f6cee5d9819a74e4389a7a6869 100644 (file)
@@ -134,7 +134,7 @@ static int32_t whichFileModTimeIsLater(const char *file1, const char *file2) {
 /* Swap the file separater character given with the new one in the file path. */
 U_CAPI void U_EXPORT2
 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar) {
-    for (int32_t i = 0, length = uprv_strlen(filePath); i < length; i++) {
+    for (int32_t i = 0, length = static_cast<int32_t>(uprv_strlen(filePath)); i < length; i++) {
         filePath[i] = (filePath[i] == oldFileSepChar ) ? newFileSepChar : filePath[i];
     }
 }