We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f543d94 commit bae76b7Copy full SHA for bae76b7
include/msgpack/v1/object.hpp
@@ -471,8 +471,12 @@ struct object_stringize_visitor {
471
return true;
472
}
473
bool visit_ext(const char* v, uint32_t size) {
474
- int type = ((size > 0) && (v[0] >= 0)) ? v[0] : -1;
475
- m_os << "\"EXT(type:" << type << ",size:" << size << ")\"";
+ if (size == 0) {
+ m_os << "\"EXT(size:0)\"";
476
+ }
477
+ else {
478
+ m_os << "\"EXT(type:" << static_cast<int>(v[0]) << ",size:" << size - 1 << ")\"";
479
480
481
482
bool start_array(uint32_t num_elements) {
0 commit comments