diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-20 11:18:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-20 11:18:50 +0000 |
commit | b348ed33442c6f3d946c0f1fc85820911a2faabe (patch) | |
tree | dc8d8c61f245740ae5e718829195737ee1a8e100 /error.c | |
parent | 6259c87d02fce0a77ac90b6786ed1f2bc5baea32 (diff) | |
download | ruby-b348ed33442c6f3d946c0f1fc85820911a2faabe.tar.gz |
* error.c (exc_equal): should not compare recursively.
[ruby-dev:36796]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -558,7 +558,7 @@ exc_equal(VALUE exc, VALUE obj) if (exc == obj) return Qtrue; if (rb_obj_class(exc) != rb_obj_class(obj)) - return rb_equal(obj, exc); + return Qfalse; CONST_ID(id_mesg, "mesg"); if (!rb_equal(rb_attr_get(exc, id_mesg), rb_attr_get(obj, id_mesg))) return Qfalse; |