summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-11-28 20:40:25 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-11-28 20:40:25 +0100
commitccbd98f3bce4682c697068dffa4baf3649d61f74 (patch)
treef8b2ffbbec068db52e52d1cd77354c574f650675 /plugingui
parent1c59c7535ecb8dbc01c8e26dd89b5406d7a554cc (diff)
Fix 64bit compile warning.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/image.cc4
1 files changed, 2 insertions, 2 deletions
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;