aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-11-08 16:19:34 -0500
committerkwolekr <kwolekr@minetest.net>2015-11-08 16:34:56 -0500
commit6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9 (patch)
tree4778a7790b68dbdc5546f70bf5f12d664fb883f8 /src/util
parentad5ac39d8d1a8b8f6f0fe077e20bac914ddc624b (diff)
downloadminetest-6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9.tar.gz
minetest-6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9.tar.bz2
minetest-6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9.zip
Fix misc. MinGW and Valgrind warnings
Diffstat (limited to 'src/util')
-rw-r--r--src/util/serialize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/serialize.cpp b/src/util/serialize.cpp
index ced5fc7cf..99cb990f1 100644
--- a/src/util/serialize.cpp
+++ b/src/util/serialize.cpp
@@ -229,7 +229,7 @@ std::string deSerializeLongString(std::istream &is)
Buffer<char> buf2(s_size);
is.read(&buf2[0], s_size);
- if (is.gcount() != s_size)
+ if ((u32)is.gcount() != s_size)
throw SerializationError("deSerializeLongString: couldn't read all chars");
s.reserve(s_size);