1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* insns.def (opt_eq): fix to use rb_str_equal().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-10-07 06:49:38 +00:00
parent 026568c915
commit 3c78d621e6
3 changed files with 8 additions and 18 deletions

View file

@ -1,3 +1,7 @@
Sun Oct 07 15:48:40 2007 Koichi Sasada <ko1@atdot.net>
* insns.def (opt_eq): fix to use rb_str_equal().
Sat Oct 6 23:14:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_to_i): update RDoc since base can be any value

View file

@ -1694,21 +1694,7 @@ opt_eq
else if (HEAP_CLASS_OF(recv) == rb_cString &&
HEAP_CLASS_OF(obj) == rb_cString &&
BASIC_OP_UNREDEFINED_P(BOP_EQ)) {
VALUE str1 = recv;
VALUE str2 = obj;
val = Qtrue;
do {
if (str1 == str2) break;
if (!ENCODING_GET(str1) && !ENCODING_GET(str2)) {
if (RSTRING_LEN(str1) == RSTRING_LEN(str2)) {
int cmp = memcmp(RSTRING_PTR(str1), RSTRING_PTR(str2),
RSTRING_LEN(str1));
if (!cmp) break;
}
}
val = rb_str_equal(str1, str2);
} while (0);
val = rb_str_equal(recv, obj);
}
else {
goto INSN_LABEL(normal_dispatch);

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-10-06"
#define RUBY_RELEASE_DATE "2007-10-07"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20071006
#define RUBY_RELEASE_CODE 20071007
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 10
#define RUBY_RELEASE_DAY 6
#define RUBY_RELEASE_DAY 7
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];