mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
level / 3 division explicitly unsigned. Saves few bytes.
This commit is contained in:
1 parent
81023dbdbd
commit
7d5116251d
2 files changed
+6
-1
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user