From 21ab756bd92ca3634b11a7028c519b0aece9e2c9 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 17 Nov 2022 10:49:18 -0800 Subject: [PATCH] Pass the same type when creating the static glyphs and positions arrays. Fixes https://gitlab.freedesktop.org/cairo/cairo/-/issues/574 --- src/cairo-quartz-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index 6676dc960..0d4b001a4 100644 --- a/src/cairo-quartz-surface.c +++ b/src/cairo-quartz-surface.c @@ -1904,7 +1904,7 @@ _cairo_quartz_cg_glyphs (const cairo_compositor_t *compositor, cairo_bool_t overlap) { CGAffineTransform textTransform, invTextTransform; - CGGlyph glyphs_static[CAIRO_STACK_ARRAY_LENGTH (CGGlyph)]; + CGGlyph glyphs_static[CAIRO_STACK_ARRAY_LENGTH (CGPoint)]; CGPoint cg_positions_static[CAIRO_STACK_ARRAY_LENGTH (CGPoint)]; CGGlyph *cg_glyphs = &glyphs_static[0]; CGPoint *cg_positions = &cg_positions_static[0];