Changed the type of msgpack::object str index from int to uint32_t.

This commit is contained in:
Takatoshi Kondo 2015-04-23 08:33:08 +09:00
parent 92a7f3f794
commit 993d007c4b

View File

@ -584,7 +584,7 @@ inline std::ostream& operator<< (std::ostream& s, const msgpack::object& o)
case msgpack::type::STR: case msgpack::type::STR:
s << '"'; 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]; char c = o.via.str.ptr[i];
switch (c) { switch (c) {
case '\\': case '\\':