From 266ff019828cb87840fc6a2e9a8ac74e64fd98da Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 11 May 2016 12:14:23 -0400 Subject: __is_bmp_code_point(): remove an always-true comparison, add readability. --- src/argv/ntapi_tt_get_option.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/argv') diff --git a/src/argv/ntapi_tt_get_option.c b/src/argv/ntapi_tt_get_option.c index b13ae4e..6cb3993 100644 --- a/src/argv/ntapi_tt_get_option.c +++ b/src/argv/ntapi_tt_get_option.c @@ -52,10 +52,9 @@ #define EQUAL_SIGN 0x3D -static __inline__ __fastcall int __is_bmp_code_point(wchar16_t code_point) +static __inline__ __fastcall int __is_bmp_code_point(uint16_t code_point) { - return (((code_point >= 0x0000) && (code_point < 0xD800)) \ - || (code_point >= 0xE000)); + return ((code_point < 0xD800) || (code_point >= 0xE000)); } -- cgit v1.2.3