From 845777b5df3c7a6cd48525449f08b9cfd2b7c8a2 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 19 Nov 2016 17:27:16 -0500 Subject: pe_impl_utf16_char_to_lower(): code maintenance. --- src/internal/pe_impl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/internal/pe_impl.c b/src/internal/pe_impl.c index 2c4e5c9..96780c9 100644 --- a/src/internal/pe_impl.c +++ b/src/internal/pe_impl.c @@ -43,8 +43,7 @@ int32_t pe_impl_strlen_utf16(const wchar16_t * str) wchar16_t pe_impl_utf16_char_to_lower(const wchar16_t c) { - if ((c >= 'A') && (c <= 'Z')) - return c + 'a' - 'A'; - else - return c; + return ((c >= 'A') && (c <= 'Z')) + ? c + 'a' - 'A' + : c; } -- cgit v1.2.3