Skip to content

Commit

Permalink
add comment about cast
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Jan 22, 2024
1 parent c58013c commit f2ef5d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lime/text/Font.hx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ class Font
{
#if (lime_cffi && !macro)
var glyphs:Dynamic = NativeCFFI.lime_font_get_glyph_indices(src, characters);
// lime_font_get_glyph_indices returns Array<Int>
// cast it to Array<Glyph> instead (Glyph is an abstract)
return cast glyphs;
#else
return null;
Expand Down

0 comments on commit f2ef5d0

Please sign in to comment.