diff --git a/src/examples/InvMasking.cpp b/src/examples/InvMasking.cpp index ad186553..04f7c2f0 100644 --- a/src/examples/InvMasking.cpp +++ b/src/examples/InvMasking.cpp @@ -88,7 +88,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) ifstream file(EXAMPLE_DIR"/rawimage_200x300.raw"); if (!file.is_open()) return; data = (uint32_t*) malloc(sizeof(uint32_t) * (200 * 300)); - file.read(reinterpret_cast(data), sizeof (data) * 200 * 300); + file.read(reinterpret_cast(data), sizeof (uint32_t) * 200 * 300); file.close(); auto image = tvg::Picture::gen();