rename MRB_ARGS_XXX to MRB_ASPEC_XXX; ref #1206

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-25 08:00:48 +09:00
parent 4faaef437d
commit 953eec60db
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -140,9 +140,9 @@ mrb_proc_arity(mrb_state *mrb, mrb_value self)
mrb_aspec aspec = *iseq >> 6;
int ma, ra, pa, arity;
ma = MRB_ARGS_REQ(aspec);
ra = MRB_ARGS_REST(aspec);
pa = MRB_ARGS_POST(aspec);
ma = MRB_ASPEC_REQ(aspec);
ra = MRB_ASPEC_REST(aspec);
pa = MRB_ASPEC_POST(aspec);
arity = ra ? -(ma + pa + 1) : ma + pa;
return mrb_fixnum_value(arity);