diff --git a/include/msgpack/object.hpp b/include/msgpack/object.hpp index b1b2dc2b..03dd8689 100644 --- a/include/msgpack/object.hpp +++ b/include/msgpack/object.hpp @@ -584,7 +584,7 @@ inline std::ostream& operator<< (std::ostream& s, const msgpack::object& o) case msgpack::type::STR: s << '"'; - for (int i = 0; i < o.via.str.size; ++i) { + for (uint32_t i = 0; i < o.via.str.size; ++i) { char c = o.via.str.ptr[i]; switch (c) { case '\\':