From 441d3bb7de311d54b9f0a5210344f9a96e97e153 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 26 Jul 2012 12:01:12 -0400 Subject: [PATCH] Minor --- src/hb-coretext.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {