[cairo-commit] rcairo/packages/cairo/ext rb_cairo_path.c,1.3,1.4

Kouhei Sutou commit at pdx.freedesktop.org
Sun Oct 22 04:30:54 PDT 2006


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory kemper:/tmp/cvs-serv9613/packages/cairo/ext

Modified Files:
	rb_cairo_path.c 
Log Message:
* packages/cairo/ext/rb_cairo_path.c (cr_path_each): fixed
  a conversion bug.


Index: rb_cairo_path.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_path.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- rb_cairo_path.c	11 Oct 2005 13:23:49 -0000	1.3
+++ rb_cairo_path.c	22 Oct 2006 11:30:51 -0000	1.4
@@ -60,10 +60,8 @@
   for (i = 0; i < path->num_data; i += path->data[i].header.length)
     {
       cairo_path_data_t *data = &(path->data[i]);
-      cairo_path_data_type_t type;
       VALUE points;
 
-      type = RVAL2CRPATHDATATYPE (data->header.type);
       points = rb_ary_new ();
 
       for (j = 1; j < data->header.length; j++)
@@ -72,7 +70,7 @@
                                             rb_float_new (data[j].point.x),
                                             rb_float_new (data[j].point.y)));
         }
-      rb_yield_values (2, type, points);
+      rb_yield_values (2, INT2FIX (data->header.type), points);
     }
 
   return self;



More information about the cairo-commit mailing list