[dwrite] Fix cast-align error-warning

Fixes https://github.com/harfbuzz/harfbuzz/issues/5197
This commit is contained in:
Behdad Esfahbod 2025-03-24 02:07:24 -06:00
parent 0849d3d8b6
commit ba709a385e

View file

@ -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 ();
}