From 6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 8 Nov 2015 16:19:34 -0500 Subject: Fix misc. MinGW and Valgrind warnings --- src/util/serialize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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 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); -- cgit v1.2.3