]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (bcachefs) fix compiler warning [-Werror=sign-compare]
authorKarel Zak <kzak@redhat.com>
Wed, 23 Aug 2023 09:53:45 +0000 (11:53 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Aug 2023 09:54:16 +0000 (11:54 +0200)
Addresses: https://github.com/util-linux/util-linux/pull/2427
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/bcache.c

index 2b0f6fc688101b92c6708b9a1f59833d05f79530..b15134616dca65def1b74730a113195fce471af7 100644 (file)
@@ -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)