For negative ints (major type 1) the diagnostic output is correct, but the comments on the right hand side look wrong. It looks like cbor.me is failing to subtract the -1 implicit in the negative int type.
For example, for hex 0x26 I see a comment of negative(6) and for 0x37 negative(23) (screenshots below).
If I'm just misunderstanding the comments then I think some clarifying message on the page would be helpful.
For negative ints (major type 1) the diagnostic output is correct, but the comments on the right hand side look wrong. It looks like cbor.me is failing to subtract the -1 implicit in the negative int type.
For example, for hex 0x26 I see a comment of
negative(6)
and for 0x37negative(23)
(screenshots below).If I'm just misunderstanding the comments then I think some clarifying message on the page would be helpful.