diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index f49e76ebe..65a1c73d3 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -260,8 +260,8 @@ _hb_coretext_shape (hb_font_t *font, #define ALLOCATE_ARRAY(Type, name, len) \ Type *name = (Type *) scratch; \ - scratch += len * sizeof (name[0]); \ - scratch_size -= len * sizeof (name[0]); + scratch += (len) * sizeof ((name)[0]); \ + scratch_size -= (len) * sizeof ((name)[0]); const CGGlyph* glyphs = CTRunGetGlyphsPtr (run); if (!glyphs) {