fix: error return type in decodeMapHeader
This commit is contained in:
parent
18f6438865
commit
1fccb83c70
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ fn decodeNInt(iter: *[]const u8, minor: u5) Error!i64 {
|
|||
return -@as(i64, @intCast(try decodePInt(iter, minor) + 1));
|
||||
}
|
||||
|
||||
pub fn decodeMapHeader(iter: *[]const u8) Error!usize {
|
||||
pub fn decodeMapHeader(iter: *[]const u8) error{ TooShort, InvalidMapType, InvalidPIntType }!usize {
|
||||
const t = try decodeType(iter);
|
||||
if (t.type == cbor_magic_null)
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue