naphaso / cbor-cpp

CBOR C++ serialization library
75 stars 29 forks source link

Fixing bug for integer -1 #4

Closed jjtara closed 9 years ago

jjtara commented 9 years ago

According with the CBOR Specification, the integer -1 has to be encoded by 0x20.

http://tools.ietf.org/html/rfc7049#appendix-B

cheers