mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
6259c87d02
commit
b348ed3344
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Oct 20 17:31:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* error.c (exc_equal): should not compare recursively.
|
||||
[ruby-dev:36796]
|
||||
|
||||
Mon Oct 20 16:48:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (ExportStringValue): new macro to convert
|
||||
|
|
2
error.c
2
error.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue