Protobuf: don't wrap uint64/sint64 numbers in quote

Technically this is to support JavaScript as it supports up to 53 bits precision, but we want to stick to the same scheme RapidJSON is using.
This commit is contained in:
Kawe Mazidjatari 2024-04-03 01:57:38 +02:00
parent 091e9efa96
commit 0aad26ad20

View File

@ -99,18 +99,18 @@ JsonObjectWriter* JsonObjectWriter::RenderUint32(StringPiece name,
JsonObjectWriter* JsonObjectWriter::RenderInt64(StringPiece name,
int64_t value) {
WritePrefix(name);
WriteChar('"');
//WriteChar('"');
WriteRawString(StrCat(value));
WriteChar('"');
//WriteChar('"');
return this;
}
JsonObjectWriter* JsonObjectWriter::RenderUint64(StringPiece name,
uint64_t value) {
WritePrefix(name);
WriteChar('"');
//WriteChar('"');
WriteRawString(StrCat(value));
WriteChar('"');
//WriteChar('"');
return this;
}