Commit 7f62e0ab authored by Linshizhi's avatar Linshizhi

fix compiler warning in example skia_svg_render.

parent 3ea9e458
......@@ -56,7 +56,7 @@ int main(int argc, char *argv[]) {
uint8_t *dataPtr = const_cast<uint8_t*>(data->bytes());
std::ofstream out(argv[2], std::ios::binary);
for (int i = 0; i < data->size(); ++i) {
for (size_t i = 0; i < data->size(); ++i) {
out.write(reinterpret_cast<char*>(&dataPtr[i]), 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment