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

Emmanuel Pacaud emmanuel at kemper.freedesktop.org
Sat Nov 10 15:17:38 PST 2007


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

New commits:
commit 0359ad6c8da56a44697498bd8b74fbc029cbe930
Author: Emmanuel Pacaud <emmanuel.pacaud at free.fr>
Date:   Sun Nov 11 00:18:19 2007 +0100

    Compilation warning suppression (char as array subscript).
    
    cairo_path_op_t is a char, and can't be directly used as array subscript.

diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 03b0930..ad73845 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -490,7 +490,7 @@ _cairo_path_fixed_interpret (cairo_path_fixed_t			*path,
 	    op = buf->op[i];
 
 	    if (! forward) {
-		points -= num_args[op];
+		points -= num_args[(int) op];
 	    }
 
 	    switch (op) {
@@ -512,7 +512,7 @@ _cairo_path_fixed_interpret (cairo_path_fixed_t			*path,
 		return status;
 
 	    if (forward) {
-		points += num_args[op];
+		points += num_args[(int) op];
 	    }
 
 	}


More information about the cairo-commit mailing list