summaryrefslogtreecommitdiffstats
path: root/common/canvas_base.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-01 16:46:12 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-01 16:46:12 +0200
commit7e0099e18e98452d909d76997258ed0f44cf9a19 (patch)
treee7f7a4d05fcb1f0923c5a092bbb463e307eb6979 /common/canvas_base.c
parent4c74e73e1da95db388a57ef05900b7b7a65dd32b (diff)
downloadspice-7e0099e18e98452d909d76997258ed0f44cf9a19.tar.gz
spice-7e0099e18e98452d909d76997258ed0f44cf9a19.tar.xz
spice-7e0099e18e98452d909d76997258ed0f44cf9a19.zip
Fix build on win32
Diffstat (limited to 'common/canvas_base.c')
-rw-r--r--common/canvas_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 866b4e63..319c4fd8 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -3079,7 +3079,7 @@ static void canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox,
};
SpicePathSeg *seg;
StrokeLines lines;
- int i;
+ unsigned int i;
int dashed;
pixman_region32_init_rect(&gc.dest_region,
@@ -3140,7 +3140,7 @@ static void canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox,
if (stroke->attr.flags & SPICE_LINE_FLAGS_START_WITH_GAP) {
gc.base.dash[stroke->attr.style_nseg - 1] = fix_to_int(style[0]);
- for (i = 0; i < stroke->attr.style_nseg - 1; i++) {
+ for (i = 0; i < (unsigned int)(stroke->attr.style_nseg - 1); i++) {
gc.base.dash[i] = fix_to_int(style[i+1]);
}
gc.base.dashOffset = gc.base.dash[0];