From: Hermet Park Date: Sat, 1 May 2021 03:48:08 +0000 (+0900) Subject: examples: fix wrong data size conversion. X-Git-Tag: submit/tizen/20210510.051321~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8a02adf1a03e21acd37ab11f192d2dae5f4494;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git examples: fix wrong data size conversion. pointer size becomes 32 to 64 bits up to machines. it has to be 32 bits. Change-Id: I2b375dfba1040ff96259e2b338b91b7cd8326d3e --- diff --git a/src/examples/InvMasking.cpp b/src/examples/InvMasking.cpp index ad18655..04f7c2f 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();