From 9269e46c0d33ecff5b21dba31accd3b10931e817 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 14 Oct 2024 10:38:11 +0800 Subject: [PATCH] chore: fix c++ compile warning (#911) --- skia-c/skia_c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skia-c/skia_c.cpp b/skia-c/skia_c.cpp index 5c186b0a..a98706a8 100644 --- a/skia-c/skia_c.cpp +++ b/skia-c/skia_c.cpp @@ -452,7 +452,7 @@ extern "C" auto font = run.font(); SkFontMetrics font_metrics; font.getMetrics(&font_metrics); - SkRect bounds[text_len]; + std::vector bounds(text_len); auto glyphs = run.glyphs(); auto glyphs_size = glyphs.size(); font.getBounds(glyphs.data(), text_len, &bounds[0], nullptr);