fix: fix windows build of flow

This commit is contained in:
CJ van den Berg 2024-08-31 21:00:43 +02:00
parent 426a012d82
commit 09519fb5b0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

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