From: Karel Zak Date: Wed, 23 Aug 2023 09:53:45 +0000 (+0200) Subject: libblkid: (bcachefs) fix compiler warning [-Werror=sign-compare] X-Git-Tag: v2.40-rc1~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17873d38fc97913c0a31d4bd08cfbfe45c4de5be;p=thirdparty%2Futil-linux.git libblkid: (bcachefs) fix compiler warning [-Werror=sign-compare] Addresses: https://github.com/util-linux/util-linux/pull/2427 Signed-off-by: Karel Zak --- diff --git a/libblkid/src/superblocks/bcache.c b/libblkid/src/superblocks/bcache.c index 2b0f6fc688..b15134616d 100644 --- a/libblkid/src/superblocks/bcache.c +++ b/libblkid/src/superblocks/bcache.c @@ -325,7 +325,7 @@ static int probe_bcachefs(blkid_probe pr, const struct blkid_idmag *mag) return BLKID_PROBE_NONE; sb_size = BCACHEFS_SB_FIELDS_OFF + BYTES(bcs); - if (sb_size > BCACHEFS_SECTOR_SIZE << bcs->layout.sb_max_size_bits) + if (sb_size > ((uint64_t) BCACHEFS_SECTOR_SIZE << bcs->layout.sb_max_size_bits)) return BLKID_PROBE_NONE; if (sb_size > BCACHEFS_SB_MAX_SIZE)