From bac70ad81de8d5198b3677ddae81bb13b46899db Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Fri, 18 Apr 2014 23:19:25 +0900 Subject: Use RARRAY_* macro instead of accessing RArray field. --- mrbgems/mruby-struct/src/struct.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mrbgems/mruby-struct/src') diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index 4f4c3533e..6932bb372 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -12,9 +12,8 @@ #include "mruby/class.h" #include "mruby/variable.h" -#define RSTRUCT_ARY(st) mrb_ary_ptr(st) -#define RSTRUCT_LEN(st) RSTRUCT_ARY(st)->len -#define RSTRUCT_PTR(st) RSTRUCT_ARY(st)->ptr +#define RSTRUCT_LEN(st) RARRAY_LEN(st) +#define RSTRUCT_PTR(st) RARRAY_PTR(st) static struct RClass * struct_class(mrb_state *mrb) -- cgit v1.2.3