mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
sd-boot: fix warning about comparison is always true
This commit is contained in:
parent
80d48995f3
commit
a614aa1985
@ -189,7 +189,7 @@ static INTN utf8_to_16(CHAR8 *stra, CHAR16 *c) {
|
||||
UINTN len;
|
||||
UINTN i;
|
||||
|
||||
if (stra[0] < 0x80)
|
||||
if (!(stra[0] & 0x80))
|
||||
len = 1;
|
||||
else if ((stra[0] & 0xe0) == 0xc0)
|
||||
len = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user