* grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for

mask rather than 64-bit type.

	Saves 20 bytes on compressed image.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-21 03:23:57 +02:00
parent 63efa602ff
commit d9ee2269c8
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
mask rather than 64-bit type.
Saves 20 bytes on compressed image.
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ntfs.c (read_data): Move code for compressed data to ... * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...

View file

@ -839,7 +839,8 @@ grub_ntfs_iterate_dir (grub_fshelp_node_t dir,
if (bitmap) if (bitmap)
{ {
grub_disk_addr_t v, i; grub_disk_addr_t i;
grub_uint8_t v;
indx = grub_malloc (mft->data->idx_size << GRUB_NTFS_BLK_SHR); indx = grub_malloc (mft->data->idx_size << GRUB_NTFS_BLK_SHR);
if (indx == NULL) if (indx == NULL)
@ -862,7 +863,7 @@ grub_ntfs_iterate_dir (grub_fshelp_node_t dir,
goto done; goto done;
} }
v <<= 1; v <<= 1;
if (v >= 0x100) if (!v)
{ {
v = 1; v = 1;
bitmap++; bitmap++;