diff options
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r-- | src/cairo-pattern.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index 154ad821..b7fb7612 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -1303,7 +1303,8 @@ _cairo_pattern_acquire_surface_for_surface (cairo_surface_pattern_t *pattern, /* If we're repeating, we just play it safe and clone the entire surface. */ /* If requested width and height are -1, clone the entire surface. * This is relied on in the svg backend. */ - if (attr->extend == CAIRO_EXTEND_REPEAT || (width == -1 && height == -1)) { + if (attr->extend == CAIRO_EXTEND_REPEAT || + (width == (unsigned int) -1 && height == (unsigned int) -1)) { x = extents.x; y = extents.y; width = extents.width; |