File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 43
43
'BYTES' : descriptor_pb2 .FieldDescriptorProto .TYPE_BYTES ,
44
44
'BOOL' : descriptor_pb2 .FieldDescriptorProto .TYPE_BOOL ,
45
45
'ENUM' : descriptor_pb2 .FieldDescriptorProto .TYPE_ENUM ,
46
+ 'FIXED32' : descriptor_pb2 .FieldDescriptorProto .TYPE_FIXED32 ,
46
47
# TODO(robbyw): More types.
47
48
}
48
49
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ fastpb_convert{{ TYPE.UINT32 }}(::google::protobuf::uint32 value)
43
43
return PyLong_FromUnsignedLong (value);
44
44
}
45
45
46
+ static PyObject *
47
+ fastpb_convert{{ TYPE.FIXED32 }}(::google::protobuf::int32 value)
48
+ {
49
+ return PyLong_FromLong (value);
50
+ }
51
+
46
52
static PyObject *
47
53
fastpb_convert{{ TYPE.UINT64 }}(::google::protobuf::uint64 value)
48
54
{
@@ -413,7 +419,7 @@ namespace {
413
419
return -1 ;
414
420
}
415
421
416
- {% elif member.type == TYPE.INT32 or member.type == TYPE.SINT32 %}
422
+ {% elif member.type == TYPE.INT32 or member.type == TYPE.SINT32 or member. type == TYPE. FIXED32 %}
417
423
::google::protobuf::int32 protoValue;
418
424
419
425
// int32
You can’t perform that action at this time.
0 commit comments