fix: fix windows build of flow

This commit is contained in:
CJ van den Berg 2024-08-31 21:00:43 +02:00
parent 2838ee23e0
commit ae54c014aa

View file

@ -340,7 +340,7 @@ pub fn decodeMapHeader(iter: *[]const u8) CborError!usize {
return 0;
if (t.major != 5)
return error.CborInvalidType;
return decodePInt(iter, t.minor);
return @intCast(try decodePInt(iter, t.minor));
}
pub fn decodeArrayHeader(iter: *[]const u8) CborError!usize {