1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Fix misc. MinGW and Valgrind warnings

This commit is contained in:
kwolekr 2015-11-08 16:19:34 -05:00
parent ad5ac39d8d
commit 6f95bb1ef3
4 changed files with 6 additions and 2 deletions

View file

@ -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);