* grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.

This commit is contained in:
Vladimir Serbinenko 2013-11-13 09:27:36 +01:00
parent b2e9294fb9
commit 81023dbdbd
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/datetime.c (grub_get_weekday): Use if rather than * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than

View file

@ -129,7 +129,7 @@ LEAF_HASH (int bs, grub_uint64_t h, zap_leaf_phys_t *l)
static inline int static inline int
ZAP_LEAF_NUMCHUNKS (int bs) 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); ZAP_LEAF_CHUNKSIZE - 2);
} }