[cairo] [PATCH] recording: Quell warning about signed/unsigned int comparison.

Bryce W. Harrington b.harrington at samsung.com
Mon Jun 10 12:01:38 PDT 2013


cairo-recording-surface.c:1657:29: warning: comparison between signed
 and unsigned integer expressions [-Wsign-compare]

Ref. change be1561da.

Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
---
 src/cairo-recording-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c
index c6d34c0..bc812aa 100644
--- a/src/cairo-recording-surface.c
+++ b/src/cairo-recording-surface.c
@@ -1654,7 +1654,7 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t	*surface,
     if (extents.width < r->width || extents.height < r->height) {
 	num_elements =
 	    _cairo_recording_surface_get_visible_commands (surface, &extents);
-	use_indices = num_elements != surface->commands.num_elements;
+	use_indices = (unsigned int)num_elements != surface->commands.num_elements;
     }
 
     for (i = 0; i < num_elements; i++) {
-- 
1.7.9.5


More information about the cairo mailing list