ext/cairo/rb_cairo_rectangle.c in cairo-1.17.7 vs ext/cairo/rb_cairo_rectangle.c in cairo-1.17.8
- old
+ new
@@ -10,11 +10,11 @@
#include "rb_cairo.h"
VALUE rb_cCairo_Rectangle;
-#define _SELF ((cairo_rectangle_int_t *)DATA_PTR (self))
+#define _SELF ((cairo_rectangle_int_t *)RTYPEDDATA_DATA (self))
#if CAIRO_CHECK_VERSION(1, 10, 0)
static const rb_data_type_t cr_rectangle_type = {
"Cairo::Rectangle",
{
@@ -37,10 +37,10 @@
VALUE width, VALUE height)
{
cairo_rectangle_int_t *rectangle;
rectangle = ALLOC (cairo_rectangle_int_t);
- DATA_PTR (self) = rectangle;
+ RTYPEDDATA_DATA (self) = rectangle;
rectangle->x = NUM2INT (x);
rectangle->y = NUM2INT (y);
rectangle->width = NUM2INT (width);
rectangle->height = NUM2INT (height);