diff options
author | kwolekr <kwolekr@minetest.net> | 2015-11-08 16:19:34 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-11-08 16:34:56 -0500 |
commit | 6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9 (patch) | |
tree | 4778a7790b68dbdc5546f70bf5f12d664fb883f8 /src/util | |
parent | ad5ac39d8d1a8b8f6f0fe077e20bac914ddc624b (diff) | |
download | minetest-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.cpp | 2 |
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); |