[cairo-commit] src/cairo-path-fixed.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Mar 20 15:01:43 PDT 2007


 src/cairo-path-fixed.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree 39679b1b21b07b0fbc05ee21745f384a123ba8da (from c939421e16fcf098f8d6196e86705173be8e40fd)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Mar 20 18:01:41 2007 -0400

    [cairo-path-fixed] Fix "comparison between signed and unsigned" warnings

diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 4845ada..41d8f9e 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -356,8 +356,8 @@ _cairo_path_fixed_add (cairo_path_fixed_
 		       cairo_point_t	  *points,
 		       int		   num_points)
 {
-    if (path->buf_tail->num_ops + 1 > CAIRO_PATH_BUF_SIZE ||
-	path->buf_tail->num_points + num_points > CAIRO_PATH_BUF_SIZE)
+    if ((unsigned int) path->buf_tail->num_ops + 1 > CAIRO_PATH_BUF_SIZE ||
+	(unsigned int) path->buf_tail->num_points + num_points > CAIRO_PATH_BUF_SIZE)
     {
 	cairo_path_buf_t *buf;
 


More information about the cairo-commit mailing list