Fixed antialiasing warning
This commit is contained in:
parent
1d3c6f1de7
commit
d89a9b58cd
1 changed files with 5 additions and 2 deletions
|
@ -109,6 +109,8 @@ nvram_set (void * data __attribute__ ((unused)))
|
||||||
char *guid, *attr, *name, *varname;
|
char *guid, *attr, *name, *varname;
|
||||||
struct efi_variable *efivar;
|
struct efi_variable *efivar;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
int i;
|
||||||
|
grub_uint64_t guidcomp;
|
||||||
|
|
||||||
if (grub_memcmp (var->name, "EfiEmu.pnvram.",
|
if (grub_memcmp (var->name, "EfiEmu.pnvram.",
|
||||||
sizeof ("EfiEmu.pnvram.") - 1) != 0)
|
sizeof ("EfiEmu.pnvram.") - 1) != 0)
|
||||||
|
@ -152,8 +154,9 @@ nvram_set (void * data __attribute__ ((unused)))
|
||||||
return 0;
|
return 0;
|
||||||
guid++;
|
guid++;
|
||||||
|
|
||||||
*(grub_uint64_t *) &(efivar->guid.data4)
|
guidcomp = grub_strtoull (guid, 0, 16);
|
||||||
= grub_cpu_to_be64 (grub_strtoull (guid, 0, 16));
|
for (i = 0; i < 8; i++)
|
||||||
|
efivar->guid.data4[i] = (guidcomp >> (56 - 8 * i)) & 0xff;
|
||||||
|
|
||||||
efivar->attributes = grub_strtoull (attr, 0, 16);
|
efivar->attributes = grub_strtoull (attr, 0, 16);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue