Skip to content

Commit

Permalink
chore: fix c++ compile warning (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn authored Oct 14, 2024
1 parent 3a26c7d commit 9269e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skia-c/skia_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ extern "C"
auto font = run.font();
SkFontMetrics font_metrics;
font.getMetrics(&font_metrics);
SkRect bounds[text_len];
std::vector<SkRect> bounds(text_len);
auto glyphs = run.glyphs();
auto glyphs_size = glyphs.size();
font.getBounds(glyphs.data(), text_len, &bounds[0], nullptr);
Expand Down

0 comments on commit 9269e46

Please sign in to comment.