From c12a4571affe9fdd2bb4620c448aded43584bb54 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 2 Mar 2007 00:37:21 -0800 Subject: [PATCH] Cast -1 values to unsigned to quiet the compiler. Marking the magic values to indicate we really did mean to type them. --- src/cairo-pattern.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index 154ad8217..b7fb7612e 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;