Skip to content

Commit 30e5bf7

Browse files
committed
fix printing bug
1 parent 2593fa5 commit 30e5bf7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/msgpack/v1/object.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,9 @@ struct object_stringize_visitor {
470470
// <barretenberg> print binary strings in hex
471471
m_os << "\"BIN(size:" << size << "): 0x";
472472
for (uint32_t i = 0; i < size; ++i) {
473+
std::ios::fmtflags flags(m_os.flags());
473474
m_os << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(static_cast<unsigned char>(v[i]));
475+
m_os.flags(flags);
474476
}
475477
m_os << "\"";
476478
// </barrenteberg>

0 commit comments

Comments
 (0)