From c58013c5e649fb4a92913b235fb2c1f0b99554fa Mon Sep 17 00:00:00 2001 From: Timur Date: Wed, 10 Jan 2024 19:45:06 +1000 Subject: [PATCH] Fix "don't know how to cast array" error. This can happen when compiling HL with `analyzer-optimize`. --- src/lime/text/Font.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime/text/Font.hx b/src/lime/text/Font.hx index 30681e3d7..2d273fb1a 100644 --- a/src/lime/text/Font.hx +++ b/src/lime/text/Font.hx @@ -189,7 +189,7 @@ class Font { #if (lime_cffi && !macro) var glyphs:Dynamic = NativeCFFI.lime_font_get_glyph_indices(src, characters); - return glyphs; + return cast glyphs; #else return null; #end