mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::json: Fix unadjusted serial size for object::member property names.
This commit is contained in:
parent
8385a63886
commit
59495a74bf
1 changed files with 6 additions and 1 deletions
|
@ -2851,7 +2851,12 @@ ircd::json::stringify(mutable_buffer &buf,
|
|||
size_t
|
||||
ircd::json::serialized(const object::member &member)
|
||||
{
|
||||
return 1 + size(member.first) + 1 + 1 + serialized(member.second);
|
||||
const json::value key
|
||||
{
|
||||
member.first, json::STRING
|
||||
};
|
||||
|
||||
return serialized(key) + 1 + serialized(member.second);
|
||||
}
|
||||
|
||||
ircd::string_view
|
||||
|
|
Loading…
Reference in a new issue