From b47a99485bf9937ceb5f137916bc1fd85cc2304f Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 29 Aug 2001 06:28:51 +0000 Subject: * parse.y (yylex): ternary ? can be followed by newline. * eval.c (rb_f_require): should check static linked libraries before raising exception. * array.c (rb_ary_equal): check identiry equality first. * string.c (rb_str_equal): ditto. * struct.c (rb_struct_equal): ditto. * numeric.c (Init_Numeric): undef Integer::new. * eval.c (rb_eval): NODE_WHILE should update result for each conditional evaluation. * eval.c (rb_eval): NODE_UNTIL should return last evaluated value (or value given to break). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'string.c') diff --git a/string.c b/string.c index 45f768c53d..78126da285 100644 --- a/string.c +++ b/string.c @@ -694,6 +694,7 @@ static VALUE rb_str_equal(str1, str2) VALUE str1, str2; { + if (str1 == str2) return Qtrue; if (TYPE(str2) != T_STRING) return Qfalse; -- cgit v1.2.3