summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/src/file_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/src/file_util.cpp b/src/common/src/file_util.cpp
index 6a7f92754..76927c3bc 100644
--- a/src/common/src/file_util.cpp
+++ b/src/common/src/file_util.cpp
@@ -781,7 +781,7 @@ bool ReadFileToString(bool text_file, const char *filename, std::string &str)
if (!f)
return false;
- str.resize(GetSize(f));
+ str.resize(static_cast<u32>(GetSize(f)));
return file.ReadArray(&str[0], str.size());
}