update setup_func so that it uses SECTOR_BITS for the performance (is this better really?).

This commit is contained in:
okuji committed 2000-04-29 16:30:13 +00:00
1 parent 310b41da89
commit 2b8c514095
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -2751,7 +2751,7 @@ setup_func (char *arg, int flags)
/* OK, check if the Stage 1.5 exists. */
if (grub_open (stage1_5_map[i].name))
{
int blocksize = (filemax + SECTOR_SIZE - 1) / SECTOR_SIZE;
int blocksize = (filemax + SECTOR_SIZE - 1) >> SECTOR_BITS;
grub_close ();
grub_strcpy (config_file, stage2);