From 75499bcda918fe284e71fa517f10e26a7beab2e5 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 12 Mar 2021 09:37:07 +0100 Subject: [PATCH] Silenced a warning on 32 bit about value ISO_ZISOFS_V1_LIMIT too large for int --- libisofs/filters/zisofs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libisofs/filters/zisofs.c b/libisofs/filters/zisofs.c index 16435e9..454be35 100644 --- a/libisofs/filters/zisofs.c +++ b/libisofs/filters/zisofs.c @@ -46,7 +46,9 @@ /* The lowest size of a file which shall not be represented by zisofs v1 */ -#define ISO_ZISOFS_V1_LIMIT 4294967296 +/* The constant 4294967296 causes protests about int size on 32 bit machines */ +#define ISO_ZISOFS_V1_LIMIT ((off_t) (1 << 16) * (off_t) (1 << 16)) + /* zisofs2: Test value for small mixed-version ISOs: 1 million ISO_ZISOFS_V1_LIMIT 1000000