* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make

level / 3 division explicitly unsigned. Saves few bytes.
This commit is contained in:
Vladimir Serbinenko 2013-11-13 09:40:16 +01:00
parent 81023dbdbd
commit 7d5116251d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
level / 3 division explicitly unsigned. Saves few bytes.
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics. * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.

View file

@ -934,7 +934,7 @@ grub_diskfilter_make_raid (grub_size_t uuidlen, char *uuid, int nmemb,
case 4: case 4:
case 5: case 5:
case 6: case 6:
totsize = (nmemb - level / 3) * disk_size; totsize = (nmemb - ((unsigned) level / 3U)) * disk_size;
break; break;
default: default: