summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-03-02 00:37:21 -0800
committerCarl Worth <cworth@cworth.org>2007-03-02 00:37:21 -0800
commitc12a4571affe9fdd2bb4620c448aded43584bb54 (patch)
tree44e4105ef7098f2593087fc0b429d49e9d700afd /src
parent3685a66b5b9cb0af10b44985dc1e9ef1c82ad77b (diff)
Cast -1 values to unsigned to quiet the compiler.
Marking the magic values to indicate we really did mean to type them.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-pattern.c3
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;