[instancer] fix bots
diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh
index b9d59ad..b173fba 100644
--- a/src/hb-ot-var-common.hh
+++ b/src/hb-ot-var-common.hh
@@ -2036,7 +2036,7 @@
 
     /* 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 b0a636e..e944ff1 100644
--- a/src/hb-ot-var-hvar-table.hh
+++ b/src/hb-ot-var-hvar-table.hh
@@ -146,8 +146,8 @@
       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;