Skip to content

Commit 993d007

Browse files
committed
Changed the type of msgpack::object str index from int to uint32_t.
1 parent 92a7f3f commit 993d007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/msgpack/object.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ inline std::ostream& operator<< (std::ostream& s, const msgpack::object& o)
584584

585585
case msgpack::type::STR:
586586
s << '"';
587-
for (int i = 0; i < o.via.str.size; ++i) {
587+
for (uint32_t i = 0; i < o.via.str.size; ++i) {
588588
char c = o.via.str.ptr[i];
589589
switch (c) {
590590
case '\\':

0 commit comments

Comments
 (0)