diff options
author | Matthias Kramm <kramm@quiss.org> | 2012-04-20 13:04:09 -0700 |
---|---|---|
committer | Matthias Kramm <kramm@quiss.org> | 2012-04-20 13:04:22 -0700 |
commit | dcd492c897922f5047108b1be21af6716789fdfb (patch) | |
tree | fefecf1054edfbefa9d570a4e823a908f95d17c5 | |
parent | 3d53a5a25b1515380fb3c756f11616c24e47daf5 (diff) |
use RARRAY_PTR instead of RARRAY()->ptr
-rw-r--r-- | lib/ruby/gfx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ruby/gfx.c b/lib/ruby/gfx.c index 21116cdb..70df1931 100644 --- a/lib/ruby/gfx.c +++ b/lib/ruby/gfx.c @@ -683,14 +683,14 @@ static VALUE doc_render(VALUE cls, VALUE device, VALUE _range, VALUE filters) if(TYPE(filters) != T_ARRAY) rb_raise(rb_eArgError, "third argument of doc->render must be an array of symbols"); - int len = RARRAY(filters)->len; + int len = RARRAY_LEN(filters); int t=0; while(t<len) { - VALUE filter = RARRAY(filters)->ptr[t++]; + VALUE filter = RARRAY_PTR(filters)[t++]; Check_Type(filter, T_SYMBOL); ID id = SYM2ID(filter); # define PARAM(x) VALUE x;if(t==len) rb_raise(rb_eArgError, "End of array while parsing arguments for filter %s", rb_id2name(id)); \ - else x = RARRAY(filters)->ptr[t++]; + else x = RARRAY_PTR(filters)[t++]; if(id == id_remove_font_transforms) { wrap_filter2(dev, remove_font_transforms); } else if(id == id_vectors_to_glyphs) { |