Closed veksa closed 3 years ago
In official documentation (https://developers.google.com/protocol-buffers/docs/proto#scalar) types int32 and int64 has possibility to have negative numbers. But your encoding/decoding is not compatible with this types for protobufjs library.
You can check it in types.spec.ts:
types.spec.ts
int32: -16868, int64: -2343919238923492000,
will produce an error:
- "int32": -16868, - "int64": -2343919238923492000, + "int32": 18446744073709535000, + "int64": 16102824834786060000,
@veksa Thank you so much. The bug has been fixed.
In official documentation (https://developers.google.com/protocol-buffers/docs/proto#scalar) types int32 and int64 has possibility to have negative numbers. But your encoding/decoding is not compatible with this types for protobufjs library.
You can check it in
types.spec.ts
:will produce an error: