mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 23:42:40 +02:00
Changed the type of msgpack::object str index from int to uint32_t.
This commit is contained in:
parent
92a7f3f794
commit
993d007c4b
@ -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 '\\':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user