diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-09-18 21:29:37 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-09-18 21:29:37 +0000 |
commit | a83cf48e725c69f131b833a65069db3f05b0b52f (patch) | |
tree | f115fa679f438b50b16382aca32a52aab2053b1d /pango/pango-script.c | |
parent | 43fa79404e3f90971dae6a99743d4edd70067b51 (diff) | |
download | pango-a83cf48e725c69f131b833a65069db3f05b0b52f.tar.gz |
Minor simplification.
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
* tools/gen-script-table.pl:
* pango/pango-script-table.h:
* pango/pango-script.c (pango_script_for_unichar): Minor
simplification.
* tests/testscript.c (test_script_lookup): Update to pass.
Diffstat (limited to 'pango/pango-script.c')
-rw-r--r-- | pango/pango-script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-script.c b/pango/pango-script.c index 52824799..a3e95ece 100644 --- a/pango/pango-script.c +++ b/pango/pango-script.c @@ -127,7 +127,7 @@ pango_script_for_unichar_bsearch (gunichar ch) PangoScript pango_script_for_unichar (gunichar ch) { - if (ch < PANGO_EASY_SCRIPTS_RANGE) + if (ch < G_N_ELEMENTS (pango_script_easy_table)) return pango_script_easy_table[ch]; else return pango_script_for_unichar_bsearch (ch); |