From ba709a385ee1b494c754247203fd6bc8496eaf9d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 24 Mar 2025 02:07:24 -0600 Subject: [PATCH] [dwrite] Fix cast-align error-warning Fixes https://github.com/harfbuzz/harfbuzz/issues/5197 --- src/hb-directwrite-shape.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-directwrite-shape.cc b/src/hb-directwrite-shape.cc index 485075e64..944406865 100644 --- a/src/hb-directwrite-shape.cc +++ b/src/hb-directwrite-shape.cc @@ -107,7 +107,7 @@ _hb_directwrite_shaper_font_data_create (hb_font_t *font) void _hb_directwrite_shaper_font_data_destroy (hb_directwrite_font_data_t *data) { - ((IDWriteFontFace *) data)->Release (); + ((IDWriteFontFace *) (const void *) data)->Release (); }