From 0e4f2e144f8ba464b31de8eaf3093e150551f207 Mon Sep 17 00:00:00 2001 From: atxr Date: Tue, 27 Feb 2024 17:02:36 +0100 Subject: [PATCH] Fix warning --- tests/test_decode_fixed_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_decode_fixed_tree.c b/tests/test_decode_fixed_tree.c index c84f83a..c901fc7 100644 --- a/tests/test_decode_fixed_tree.c +++ b/tests/test_decode_fixed_tree.c @@ -33,7 +33,7 @@ void main(int argc, char** argv) { printf("BLOC %d:\n", k); - LFH* lfh = &zip.start[zip.lfh_off[k]]; + LFH* lfh = (LFH*) (zip.start + zip.lfh_off[k]); unsigned int uncompressed_size = lfh->uncompressed_size; printf("UNCOMPRESSED SIZE: 0x%x\n", uncompressed_size);