projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb166ee
)
examples: fix wrong data size conversion.
author
Hermet Park
<chuneon.park@samsung.com>
Sat, 1 May 2021 03:48:08 +0000
(12:48 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Mon, 10 May 2021 04:54:51 +0000
(13:54 +0900)
pointer size becomes 32 to 64 bits up to machines.
it has to be 32 bits.
Change-Id: I2b375dfba1040ff96259e2b338b91b7cd8326d3e
src/examples/InvMasking.cpp
patch
|
blob
|
history
diff --git
a/src/examples/InvMasking.cpp
b/src/examples/InvMasking.cpp
index
ad18655
..
04f7c2f
100644
(file)
--- 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<char *>(data), sizeof (
data
) * 200 * 300);
+ file.read(reinterpret_cast<char *>(data), sizeof (
uint32_t
) * 200 * 300);
file.close();
auto image = tvg::Picture::gen();