🔨 overwork binary subtypes

This commit is contained in:
Niels Lohmann 2020-05-17 13:51:59 +02:00
parent ab6e76dd05
commit dead99eb0e
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
8 changed files with 195 additions and 117 deletions

View file

@ -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