From 6f76e02f4a9a1be9700d9478be1d968ea4b0c6f0 Mon Sep 17 00:00:00 2001 From: adrian17 Date: Sun, 29 Sep 2013 18:39:12 +0200 Subject: [PATCH] Fixed compiler warnings --- file/chunk_file.cpp | 2 +- math/expression_parser.cpp | 2 +- util/text/utf8.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/file/chunk_file.cpp b/file/chunk_file.cpp index 6d61f11841..fde65fe970 100644 --- a/file/chunk_file.cpp +++ b/file/chunk_file.cpp @@ -219,7 +219,7 @@ void ChunkFile::writeWString(const std::string &str) { unsigned short *text; size_t len = str.length(); text = new unsigned short[len+1]; - for (int i=0; i valueStack; unsigned int arg[5]; diff --git a/util/text/utf8.cpp b/util/text/utf8.cpp index 378fd236c6..c236125b04 100644 --- a/util/text/utf8.cpp +++ b/util/text/utf8.cpp @@ -362,7 +362,7 @@ const char *u8_strchr(const char *s, uint32_t ch, int *charn) const char *u8_memchr(const char *s, uint32_t ch, size_t sz, int *charn) { - int i = 0, lasti=0; + size_t i = 0, lasti=0; uint32_t c; int csz;