未验证 提交 2c610bfe 编写于 作者: G Gary Qian 提交者: GitHub

Fix dynamic array -> vector (#7645)

上级 09a3735e
......@@ -183,8 +183,10 @@ void decodeStrut(Dart_Handle strut_data,
static_cast<txt::FontStyle>(uint8_data[byte_count++]);
}
float float_data[byte_data.length_in_bytes() - byte_count / 4];
memcpy(float_data, static_cast<const char*>(byte_data.data()) + byte_count,
std::vector<float> float_data;
float_data.resize((byte_data.length_in_bytes() - byte_count) / 4);
memcpy(float_data.data(),
static_cast<const char*>(byte_data.data()) + byte_count,
byte_data.length_in_bytes() - byte_count);
size_t float_count = 0;
if (mask & sFontSizeMask) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册