efi: fix warnings with recent GCC
../../grub-core/term/efi/console.c:128:32: error: suggest parentheses around '&&' within '||' [-Werror=parentheses] if (key.unicode_char >= 0x20 && key.unicode_char <= 0x7f
This commit is contained in:
parent
0b72543afd
commit
5fcde03bf1
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ grub_efi_translate_key (grub_efi_input_key_t key)
|
||||||
else if (key.scan_code < ARRAY_SIZE (efi_codes))
|
else if (key.scan_code < ARRAY_SIZE (efi_codes))
|
||||||
return efi_codes[key.scan_code];
|
return efi_codes[key.scan_code];
|
||||||
|
|
||||||
if (key.unicode_char >= 0x20 && key.unicode_char <= 0x7f
|
if ((key.unicode_char >= 0x20 && key.unicode_char <= 0x7f)
|
||||||
|| key.unicode_char == '\t' || key.unicode_char == '\b'
|
|| key.unicode_char == '\t' || key.unicode_char == '\b'
|
||||||
|| key.unicode_char == '\n' || key.unicode_char == '\r')
|
|| key.unicode_char == '\n' || key.unicode_char == '\r')
|
||||||
return key.unicode_char;
|
return key.unicode_char;
|
||||||
|
|
Loading…
Reference in a new issue