mirror of
https://github.com/nlohmann/json.git
synced 2026-09-16 21:27:58 +00:00
🔨 overwork binary subtypes
This commit is contained in:
@@ -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