* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
level / 3 division explicitly unsigned. Saves few bytes.
This commit is contained in:
parent
81023dbdbd
commit
7d5116251d
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
|
||||
|
|
|
@ -934,7 +934,7 @@ grub_diskfilter_make_raid (grub_size_t uuidlen, char *uuid, int nmemb,
|
|||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
totsize = (nmemb - level / 3) * disk_size;
|
||||
totsize = (nmemb - ((unsigned) level / 3U)) * disk_size;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue