Fix jsonptr's JSON output for CBOR simple values

This commit is contained in:
Nigel Tao committed 2020-07-27 18:01:05 +10:00
1 parent 983a74f257
commit 35c4e9532b
1 file changed
+1 -1
+1 -1
View File
@@ -1122,7 +1122,7 @@ write_cbor_simple_value(uint64_t tag, wuffs_base__slice_u8 s) {
}
if (!g_flags.output_cbor_metadata_as_json_comments) {
return nullptr;
return write_dst("null", 4);
}
uint8_t buf[WUFFS_BASE__U64__BYTE_LENGTH__MAX_INCL];
size_t n = wuffs_base__render_number_u64(