From f557ecfc2e3ad520c3e53ebb94f55d0fb7895990 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Wed, 18 Jan 2006 00:49:50 +0000 Subject: [PATCH] fixed compiler warnings --- lib/gdi/gpixmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gdi/gpixmap.cpp b/lib/gdi/gpixmap.cpp index aaffbaa..e44ee0f 100644 --- a/lib/gdi/gpixmap.cpp +++ b/lib/gdi/gpixmap.cpp @@ -379,7 +379,7 @@ void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color) if (clip.rects.empty()) return; - __u32 col; + __u32 col = 0; if (surface->bpp == 8) { srf8 = (__u8*)surface->data; @@ -438,7 +438,7 @@ void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color) do { ++a; - if (a == clip.rects.size()) + if ((unsigned int)a == clip.rects.size()) a = 0; if (a == lasthit) { -- 2.7.4