From 2902529b9276cd15319fa308a9b9e963fa21cc94 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 2 Mar 2021 15:05:22 -0700 Subject: [PATCH] [subset] Fix HB_TINY build Fixes https://github.com/harfbuzz/harfbuzzjs/issues/34#issuecomment-789247723 --- src/hb-ot-layout-gsubgpos.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 0f55a10a6..7655af12d 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -3433,9 +3433,12 @@ struct GSUBGPOS const Feature& f = get_feature (i); if (f.featureParams.is_null () - && !f.intersects_lookup_indexes (lookup_indices) - && !alternate_feature_indices.has (i)) - feature_indices->del (i); + && !f.intersects_lookup_indexes (lookup_indices) +#ifndef HB_NO_VAR + && !alternate_feature_indices.has (i) +#endif + ) + feature_indices->del (i); } }