From 64e7e27cd4683b0d12c018bf20c51d6b1f7ed95b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 21 Jun 2018 18:51:14 +0200 Subject: [PATCH] sd-boot: coding style fix, don't rely on C's downgrade-to-bool feature for numerical values --- src/boot/efi/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 582d34f9838..b1111062e56 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -890,7 +890,7 @@ static INTN str_verscmp(CHAR16 *s1, CHAR16 *s2) { INTN order; order = c_order(*s1) - c_order(*s2); - if (order) + if (order != 0) return order; s1++; s2++; @@ -914,7 +914,7 @@ static INTN str_verscmp(CHAR16 *s1, CHAR16 *s2) { if (is_digit(*s2)) return -1; - if (first) + if (first != 0) return first; } -- 2.47.3