commit 07930e788ddc4dc37e6b7b9d3f3d212610c92436
parent 8db066580c587cb8fbc4d3efea762b748d06369e
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date: Sun, 28 Nov 2021 23:58:09 +0100
fix static asserts that weren't checked before
Signed-off-by: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compress/flate/inflate.ha b/compress/flate/inflate.ha
@@ -260,7 +260,7 @@ case inflate_err::TABLE =>
};
fn wraperror(err: inflate_err) errors::opaque = {
- static assert(size(inflate_err) <= size(error::opaque_data));
+ static assert(size(inflate_err) <= size(errors::opaque_data));
let wrapped = errors::opaque { strerror = &opaque_strerror, ... };
let myptr = &wrapped.data: *inflate_err;
*myptr = err;
diff --git a/compress/zlib/reader.ha b/compress/zlib/reader.ha
@@ -45,7 +45,7 @@ case =>
};
fn wraperror(err: decompress_err) errors::opaque = {
- static assert(size(decompress_err) <= size(error::opaque_data));
+ static assert(size(decompress_err) <= size(errors::opaque_data));
let wrapped = errors::opaque { strerror = &opaque_strerror, ... };
let myptr = &wrapped.data: *decompress_err;
*myptr = err;