From acbf17ae8f8ee0f941fe98ed12f115f2b349bba8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 23 Aug 2023 11:53:45 +0200 Subject: [PATCH] libblkid: (bcachefs) fix compiler warning [-Werror=sign-compare] Addresses: https://github.com/util-linux/util-linux/pull/2427 Signed-off-by: Karel Zak (cherry picked from commit 17873d38fc97913c0a31d4bd08cfbfe45c4de5be) --- libblkid/src/superblocks/bcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/superblocks/bcache.c b/libblkid/src/superblocks/bcache.c index 2368770427..6ab3fe9d4c 100644 --- a/libblkid/src/superblocks/bcache.c +++ b/libblkid/src/superblocks/bcache.c @@ -311,7 +311,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) -- 2.47.2