From ccbd98f3bce4682c697068dffa4baf3649d61f74 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 28 Nov 2013 20:40:25 +0100 Subject: Fix 64bit compile warning. --- plugingui/image.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui') diff --git a/plugingui/image.cc b/plugingui/image.cc index cba27fc..886268d 100644 --- a/plugingui/image.cc +++ b/plugingui/image.cc @@ -87,13 +87,13 @@ void GUI::Image::setError(int err) memcpy(&w, p, 4); p += 4; memcpy(&h, p, 4); p += 4; - DEBUG(image, "w:%d, h:%d\n", w, h); + DEBUG(image, "w:%d, h:%d\n", (int)w, (int)h); row_pointers = (png_bytep*)malloc(sizeof(png_bytep) * h); for(unsigned int y = 0; y < h; y++) { size_t size = w * sizeof(unsigned int); DEBUG(image, "rc.size:%d >= p:%d (rowsize: %d)\n", - rc.size(), p - rc.data(), size); + (int)rc.size(), (int)(p - rc.data()), (int)size); row_pointers[y] = (png_byte*)malloc(size); memcpy(row_pointers[y], p, size); p += size; -- cgit v1.2.3