From 9c6398a444259a82b4ed531323b153bbce03af62 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 29 Nov 2013 08:47:28 +0900 Subject: rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513 --- src/array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/array.c') 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 { -- cgit v1.2.3