diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2011-12-15 16:22:48 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2011-12-15 16:22:48 -0500 |
commit | 14899adc1891890299b76c4d9dc0ff8583227741 (patch) | |
tree | 11891b8c985bed54fce3870f76d57fabbfe76d53 /contrib | |
parent | 93d8573ddcf97648983a1c1b5cdda8a3ec6d4432 (diff) |
Fix comparison bug
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/harfbuzz-unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/harfbuzz-unicode.c b/contrib/harfbuzz-unicode.c index ce4f8e2..72c5cf2 100644 --- a/contrib/harfbuzz-unicode.c +++ b/contrib/harfbuzz-unicode.c @@ -114,7 +114,7 @@ hb_utf16_script_run_next(unsigned *num_code_points, HB_ScriptItem *output, const HB_Script script = code_point_to_script(cp); if (script != current_script) { - if (current_script == init_script == HB_Script_Inherited) { + if (current_script == HB_Script_Inherited && init_script == HB_Script_Inherited) { // If we started off as inherited, we take whatever we can find. output->script = script; current_script = script; |