diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-29 08:47:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-29 08:47:28 +0900 |
| commit | 9c6398a444259a82b4ed531323b153bbce03af62 (patch) | |
| tree | c5a2ba787a39c09434242f72eb83b180f8585489 /src/array.c | |
| parent | 9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9 (diff) | |
| download | mruby-9c6398a444259a82b4ed531323b153bbce03af62.tar.gz mruby-9c6398a444259a82b4ed531323b153bbce03af62.zip | |
rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513
Diffstat (limited to 'src/array.c')
| -rw-r--r-- | src/array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/array.c b/src/array.c index 966d4956c..3843339a1 100644 --- a/src/array.c +++ b/src/array.c @@ -309,7 +309,7 @@ mrb_ary_cmp(mrb_state *mrb, mrb_value ary1) a1 = RARRAY(ary1); a2 = RARRAY(ary2); if (a1->len == a2->len && a1->ptr == a2->ptr) return mrb_fixnum_value(0); else { - mrb_sym cmp = mrb_intern2(mrb, "<=>", 3); + mrb_sym cmp = mrb_intern(mrb, "<=>", 3); len = RARRAY_LEN(ary1); if (len > RARRAY_LEN(ary2)) { @@ -1070,7 +1070,7 @@ mrb_ary_equal(mrb_state *mrb, mrb_value ary1) if (mrb_obj_equal(mrb, ary1, ary2)) return mrb_true_value(); if (mrb_special_const_p(ary2)) return mrb_false_value(); if (!mrb_array_p(ary2)) { - if (!mrb_respond_to(mrb, ary2, mrb_intern2(mrb, "to_ary", 6))) { + if (!mrb_respond_to(mrb, ary2, mrb_intern(mrb, "to_ary", 6))) { return mrb_false_value(); } else { |
