mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
This commit is contained in:
1 parent
b2e9294fb9
commit
81023dbdbd
2 files changed
+5
-1
No files matched your search
@@ -129,7 +129,7 @@ LEAF_HASH (int bs, grub_uint64_t h, zap_leaf_phys_t *l)
|
||||
static inline int
|
||||
ZAP_LEAF_NUMCHUNKS (int bs)
|
||||
{
|
||||
return (((1 << bs) - 2 * ZAP_LEAF_HASH_NUMENTRIES (bs)) /
|
||||
return (((1U << bs) - 2 * ZAP_LEAF_HASH_NUMENTRIES (bs)) /
|
||||
ZAP_LEAF_CHUNKSIZE - 2);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user