From e877e74632632e1b798ca791e2c30376ae4a5732 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 14 Mar 2013 19:06:19 +0100 Subject: Fix compiler warning. --- plugingui/painter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugingui/painter.cc b/plugingui/painter.cc index e5da246..ce88333 100644 --- a/plugingui/painter.cc +++ b/plugingui/painter.cc @@ -198,8 +198,8 @@ void GUI::Painter::drawFilledRectangle(int x1, int y1, int x2, int y2) void GUI::Painter::clear() { - for(int x = 0; x < pixbuf->width; x++) { - for(int y = 0; y < pixbuf->height; y++) { + for(int x = 0; x < (int)pixbuf->width; x++) { + for(int y = 0; y < (int)pixbuf->height; y++) { pixbuf->setPixel(x, y, 0, 0, 0, 0); } } -- cgit v1.2.3