Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Buffers;
using System.Diagnostics;
using System.Globalization;
using System.Text.Json;
using System.Text.Json.Serialization;
using Google.Protobuf;
Expand Down Expand Up @@ -37,7 +38,7 @@ public override void Read(ref Utf8JsonReader reader, IMessage obj, Type typeToCo

if (_isConverterForNumberType && reader.TokenType == JsonTokenType.String && (JsonNumberHandling.AllowReadingFromString & options.NumberHandling) != 0)
{
var value = Convert.ChangeType(reader.GetString(), typeToConvert);
var value = Convert.ChangeType(reader.GetString(), typeToConvert, CultureInfo.InvariantCulture);
fieldAccessor.SetValue(obj, value);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ message SimpleMessage {

uint32 uint_32_property = 5;

uint32 uint_64_property = 6;
uint64 uint_64_property = 6;

sint32 sint_32_property = 7;

Expand Down