mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
091e9efa96
commit
0aad26ad20
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user