summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-08-03 16:23:25 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-08-03 16:23:25 -0400
commite53682b33c8d7fd8834cd77330b3f1a1aa43b2e2 (patch)
tree621d9cc453d91d937b7cab8a50cc8da1d040a9d0
parentbbc0c82a9fe36f435943cc59149aa0edc26f7fc9 (diff)
Fix clang warning in endian swap code
-rw-r--r--tools/msgenc/msgenc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/msgenc/msgenc.cpp b/tools/msgenc/msgenc.cpp
index 314fbce1..9e1876a2 100644
--- a/tools/msgenc/msgenc.cpp
+++ b/tools/msgenc/msgenc.cpp
@@ -64,7 +64,7 @@ u16string ReadTextFileU16LE(path filename) {
throw runtime_error(ss.str());
}
if (bom == u'\uFFFE') {
- for (int i = 0; i < count; i++) {
+ for (size_t i = 0; i < count; i++) {
buf[i] = (buf[i] << 8) | (buf[i] >> 8);
}
}