From d853846189ca6ce587f72dbac9c54484731f01d2 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 3 Apr 2024 01:57:38 +0200 Subject: [PATCH] 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. --- .../protobuf/util/internal/json_objectwriter.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/r5dev/thirdparty/protobuf/util/internal/json_objectwriter.cc b/r5dev/thirdparty/protobuf/util/internal/json_objectwriter.cc index ac14b37c..448de72c 100644 --- a/r5dev/thirdparty/protobuf/util/internal/json_objectwriter.cc +++ b/r5dev/thirdparty/protobuf/util/internal/json_objectwriter.cc @@ -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; }