summaryrefslogtreecommitdiffhomepage
path: root/src/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 12:14:23 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:26 -0400
commit266ff019828cb87840fc6a2e9a8ac74e64fd98da (patch)
treed56e76f5cd2872d8ffd622ade36bb931e72ea6a4 /src/argv
parent09862c81da4e2aca1e2a52ab5cd4848dd19319a4 (diff)
downloadntapi-266ff019828cb87840fc6a2e9a8ac74e64fd98da.tar.bz2
ntapi-266ff019828cb87840fc6a2e9a8ac74e64fd98da.tar.xz
__is_bmp_code_point(): remove an always-true comparison, add readability.
Diffstat (limited to 'src/argv')
-rw-r--r--src/argv/ntapi_tt_get_option.c5
1 files changed, 2 insertions, 3 deletions
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));
}