summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/pe_impl.c7
1 files 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;
}