Skip to content

Commit 2b17c81

Browse files
authored
Minor fix to include signed ints in Protobuf transform (#13) (#2286)
1 parent 49f8188 commit 2b17c81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Confluent.SchemaRegistry.Serdes.Protobuf/ProtobufUtils.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,13 @@ private static RuleContext.Type GetType(FieldDescriptor field)
244244
case FieldType.Bytes:
245245
return RuleContext.Type.Bytes;
246246
case FieldType.Int32:
247+
case FieldType.SInt32:
247248
case FieldType.UInt32:
248249
case FieldType.Fixed32:
249250
case FieldType.SFixed32:
250251
return RuleContext.Type.Int;
251252
case FieldType.Int64:
253+
case FieldType.SInt64:
252254
case FieldType.UInt64:
253255
case FieldType.Fixed64:
254256
case FieldType.SFixed64:

0 commit comments

Comments
 (0)