shamblett / cbor

A CBOR implementation for Dart
MIT License
36 stars 15 forks source link

Fixes wrong decoding of integers #42

Closed nicbn closed 2 years ago

nicbn commented 2 years ago

Integers of size 16 and 32 where being decoding in 2 complement, which caused some unsigned values to be decoded as negative, as reported in #41.

I added a test case as well.