aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Brenner <russellbrenner@google.com>2011-12-14 13:16:51 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-12-14 13:16:51 -0800
commit11de741c46a0583ba50dd912158b5c41f929bd7b (patch)
tree3028b080cbe3e0c166ade2ccdc8615561759b420
parent873b7b3e703e0f228f8d2d12896def00e281adf2 (diff)
parentc8f4ca0ba9aee81cc4578386149056779e94be2a (diff)
downloadharfbuzz-11de741c46a0583ba50dd912158b5c41f929bd7b.tar.gz
Merge "Fix double comparison"
-rwxr-xr-xcontrib/harfbuzz-unicode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/harfbuzz-unicode.c b/contrib/harfbuzz-unicode.c
index 0a34b65..6b4778c 100755
--- a/contrib/harfbuzz-unicode.c
+++ b/contrib/harfbuzz-unicode.c
@@ -114,7 +114,10 @@ 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) {
+ /* BEGIN android-changed
+ The condition was not correct by doing "a == b == constant"
+ END android-changed */
+ 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;