[前][次][番号順一覧][スレッド一覧]

ruby-changes:8328

From: matz <ko1@a...>
Date: Mon, 20 Oct 2008 20:19:10 +0900 (JST)
Subject: [ruby-changes:8328] Ruby:r19856 (trunk): * error.c (exc_equal): should not compare recursively.

matz	2008-10-20 20:18:50 +0900 (Mon, 20 Oct 2008)

  New Revision: 19856

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19856

  Log:
    * error.c (exc_equal): should not compare recursively.
      [ruby-dev:36796]

  Modified files:
    trunk/ChangeLog
    trunk/error.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19855)
+++ ChangeLog	(revision 19856)
@@ -1,3 +1,8 @@
+Mon Oct 20 17:31:17 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* error.c (exc_equal): should not compare recursively.
+	  [ruby-dev:36796]
+
 Mon Oct 20 16:48:43 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* include/ruby/ruby.h (ExportStringValue): new macro to convert
Index: error.c
===================================================================
--- error.c	(revision 19855)
+++ error.c	(revision 19856)
@@ -558,7 +558,7 @@
 
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]