diff options
Diffstat (limited to 'lib/unicode/prop/uprop_get_uc.c')
-rw-r--r-- | lib/unicode/prop/uprop_get_uc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/unicode/prop/uprop_get_uc.c b/lib/unicode/prop/uprop_get_uc.c index 724e034..c1ddf87 100644 --- a/lib/unicode/prop/uprop_get_uc.c +++ b/lib/unicode/prop/uprop_get_uc.c @@ -127,8 +127,5 @@ uprop_get_uc(rune ch, struct ucctx ctx) return M(); rune CH = uprop_get_suc(ch); - if (ch != CH) - return M(CH); - - return mlib_lookup_kv(ch); + return ch != CH ? M(CH) : mlib_lookup_kv(ch); } |