mirror of
https://github.com/nlohmann/json.git
synced 2026-10-18 12:08:12 +00:00
🔨 overwork binary subtypes
This commit is contained in:
8 files changed
+195
-117
No files matched your search
@@ -658,7 +658,7 @@ class binary_writer
|
||||
// step 1.5: if this is an ext type, write the subtype
|
||||
if (use_ext)
|
||||
{
|
||||
write_number(j.m_value.binary->subtype());
|
||||
write_number(static_cast<std::int8_t>(j.m_value.binary->subtype()));
|
||||
}
|
||||
|
||||
// step 2: write the byte string
|
||||
|
||||
Reference in new issue
Block a user