From 478059db9c632e4e628bc5cd80a5ecfdcfe07606 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 16 Apr 2024 16:30:32 +0200 Subject: Check lookup[0].lo instead of a magic number --- gen/prop/hst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gen/prop/hst') diff --git a/gen/prop/hst b/gen/prop/hst index f1af5df..3cb241d 100755 --- a/gen/prop/hst +++ b/gen/prop/hst @@ -49,7 +49,7 @@ END { print "enum uprop_hst" print "uprop_get_hst(rune ch)" print "{" - print "\treturn ch < RUNE_C(0x1100) ? HST_NA : mlib_lookup(ch);" + print "\treturn ch < lookup[0].lo ? HST_NA : mlib_lookup(ch);" print "}" } ' data/HangulSyllableType | sed 's/\s*$//' -- cgit v1.2.3