From a614aa1985d60519de120660cc7379c69690a3bd Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 31 Jan 2020 19:20:34 +0900 Subject: [PATCH] sd-boot: fix warning about comparison is always true --- src/boot/efi/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index da743dcb9f2..b44f051d95d 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -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;