OSDN Git Service

Reduce compiler warnings
[winmerge-jp/winmerge-jp.git] / Src / FileFilterMgr.cpp
index 32d7ce5..c8b0576 100644 (file)
@@ -170,7 +170,8 @@ FileFilter * FileFilterMgr::LoadFilterFile(const String& szFilepath, int & error
        }
 
        file.ReadBom(); // in case it is a Unicode file, let UniMemFile handle BOM
-       if (!file.IsUnicode() && !ucr::CheckForInvalidUtf8(reinterpret_cast<const char*>(file.GetBase()), file.GetFileSize()))
+       if (!file.IsUnicode() && !ucr::CheckForInvalidUtf8(
+               reinterpret_cast<const char*>(file.GetBase()), static_cast<size_t>(file.GetFileSize())))
                file.SetUnicoding(ucr::UTF8);
 
        String fileName;