Actually both positive and negative values of signed integers are encoded/decoded as major type 1, causing interoperability problems with cbor libraries implemented in other languages.
This patch is for compliance with RFC8949: positive integers as major type 0 and negative integer as major type 1.
Actually both positive and negative values of signed integers are encoded/decoded as major type 1, causing interoperability problems with cbor libraries implemented in other languages.
This patch is for compliance with RFC8949: positive integers as major type 0 and negative integer as major type 1.