diff --git a/src/deflate.zig b/src/deflate.zig index eac24aa..a49d170 100644 --- a/src/deflate.zig +++ b/src/deflate.zig @@ -603,6 +603,8 @@ const TestTokenWriter = struct { }; test "flate.Deflate struct sizes" { + if (@sizeOf(usize) != 8) return error.SkipZigTest; + try expect(@sizeOf(Token) == 4); // list: (1 << 15) * 4 = 128k + pos: 8 diff --git a/src/inflate.zig b/src/inflate.zig index 8051df7..68ec2f7 100644 --- a/src/inflate.zig +++ b/src/inflate.zig @@ -342,6 +342,8 @@ pub fn Inflate(comptime container: Container, comptime ReaderType: type) type { } test "flate.Inflate struct sizes" { + if (@sizeOf(usize) != 8) return error.SkipZigTest; + var fbs = std.io.fixedBufferStream(""); const ReaderType = @TypeOf(fbs.reader()); const inflate_size = @sizeOf(Inflate(.gzip, ReaderType));