提交 441d3bb7 编写于 作者: B Behdad Esfahbod

Minor

上级 2e7f2230
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册