aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQunxin Liu <qxliu@google.com>2023-09-20 11:28:15 -0700
committerQunxin Liu <qxliu@google.com>2023-09-20 11:28:15 -0700
commitb5f7ca1ab49b3842d3c2ba4ac9fbd0531378d7b6 (patch)
treea9ed68c05a7706fb40ec7cacfd12e89f0d0c2c33
parent2d2818c0963d44cde07e612c5310ac2dc85cc846 (diff)
downloadharfbuzz_ng-b5f7ca1ab49b3842d3c2ba4ac9fbd0531378d7b6.tar.gz
[instancer] fix bots
-rw-r--r--src/hb-ot-var-common.hh2
-rw-r--r--src/hb-ot-var-hvar-table.hh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh
index b9d59ad7a..b173fba17 100644
--- a/src/hb-ot-var-common.hh
+++ b/src/hb-ot-var-common.hh
@@ -2036,7 +2036,7 @@ struct item_variations_t
/* return directly if no optimization, maintain original VariationIndex so
* varidx_map would be empty */
- if (!optimize) return encodings.in_error ();
+ if (!optimize) return !encodings.in_error ();
/* sort encoding_objs */
encoding_objs.qsort ();
diff --git a/src/hb-ot-var-hvar-table.hh b/src/hb-ot-var-hvar-table.hh
index b0a636e05..e944ff13a 100644
--- a/src/hb-ot-var-hvar-table.hh
+++ b/src/hb-ot-var-hvar-table.hh
@@ -146,8 +146,8 @@ struct index_map_subset_plan_t
hb_codepoint_t new_gid = _.first;
if (unlikely (new_gid >= map_count)) break;
- unsigned v = output_map.arrayZ[new_gid];
- unsigned *new_varidx;
+ uint32_t v = output_map.arrayZ[new_gid];
+ uint32_t *new_varidx;
if (!varidx_map.has (v, &new_varidx))
return false;