dedis / protobuf

Reflection-based Protocol Buffers for Go
GNU General Public License v2.0
76 stars 15 forks source link

Incorrect encoding of int(37) #74

Open DmitriyMV opened 2 years ago

DmitriyMV commented 2 years ago

Per spec int(37) should be encoded as 0x25, but it's encoded as 0x4a.

https://github.com/dedis/protobuf/blob/c3d7648e80018f596f12ebb57afb94d4eba86e32/privateFields_test.go#L35