]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/toolutil/toolutil.cpp
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / toolutil.cpp
index fb7263dcfe6cd872d7d21bfac1c59fa6f07a51b9..4a43ffd15e40a5d47b9998c52bce93c097c74262 100644 (file)
@@ -143,7 +143,7 @@ findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status)
     resultLen = 0;
   } else {
     resultPtr = path;
-    resultLen = basename - path;
+    resultLen = static_cast<int32_t>(basename - path);
     if(resultLen<1) {
       resultLen = 1; /* '/' or '/a' -> '/' */
     }