summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 17:27:16 -0500
committermidipix <writeonce@midipix.org>2016-11-19 17:27:16 -0500
commit845777b5df3c7a6cd48525449f08b9cfd2b7c8a2 (patch)
tree06c49938391367d11a6276d941da848c32c13c2c /src/internal
parent11922297986fd568ad8de61d8d8b131e22bf0142 (diff)
downloadpemagine-845777b5df3c7a6cd48525449f08b9cfd2b7c8a2.tar.bz2
pemagine-845777b5df3c7a6cd48525449f08b9cfd2b7c8a2.tar.xz
pe_impl_utf16_char_to_lower(): code maintenance.
Diffstat (limited to 'src/internal')
-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;
}