summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-12-15 16:22:48 -0500
committerBehdad Esfahbod <behdad@behdad.org>2011-12-15 16:22:48 -0500
commit14899adc1891890299b76c4d9dc0ff8583227741 (patch)
tree11891b8c985bed54fce3870f76d57fabbfe76d53 /contrib
parent93d8573ddcf97648983a1c1b5cdda8a3ec6d4432 (diff)
Fix comparison bug
Diffstat (limited to 'contrib')
-rw-r--r--contrib/harfbuzz-unicode.c2
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;