-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error on decoding unsupported CBOR neg int
CBOR negative integers like -18446744073709551616 are unsupported because they cannot fit into Go's int64. Instead of returning 0 with err=nil, cbor.Unmarshal now returns cbor.UnmarshalTypeError when trying to decode these values. Closes Issue #14.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters