From 30822c7fca0516d2a3f591a48ad66c01ef86f0c9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 2 May 2014 15:29:21 +0200 Subject: Fix 64bit type errors. --- plugingui/image.cc | 4 ++-- 1 file 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; -- cgit v1.2.3