summaryrefslogtreecommitdiff
path: root/plugingui/image.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-05-02 15:29:21 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-05-02 15:29:21 +0200
commit30822c7fca0516d2a3f591a48ad66c01ef86f0c9 (patch)
tree35545dfc774aaf504ffe3329a72cb98a7a94eaea /plugingui/image.cc
parente0f976c5897ca27d758e678e831174dc1349a04a (diff)
Fix 64bit type errors.
Diffstat (limited to 'plugingui/image.cc')
-rw-r--r--plugingui/image.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/image.cc b/plugingui/image.cc
index 4986027..65b8242 100644
--- a/plugingui/image.cc
+++ b/plugingui/image.cc
@@ -81,8 +81,8 @@ void GUI::Image::load(const char* data, size_t size)
//unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h,
// const unsigned char* in, size_t insize);
unsigned iw, ih;
- unsigned res = lodepng_decode32((unsigned char**)&image_data, &w, &h,
- (const unsigned char*)data, (size_t)size);
+ unsigned res = lodepng_decode32((unsigned char**)&image_data, &iw, &ih,
+ (const unsigned char*)data, size);
w = iw;
h = ih;