summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-07 22:33:32 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-07 22:33:32 +0000
commite798251a8a3697e7da9b0b0a26ffa06111fedf45 (patch)
treed3e0c44974f197e93a2930468a69d3970d9aa1c9
parentbab42629ebff81cf5d8117f91bd536b3b2ac4a48 (diff)
* compar.c (cmp_equal): Document ignored exception and return false
By Makoto Kishimoto [Bug #7790] [ruby-dev:46925] [ruby-dev:46910] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--compar.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fc2ab551bc..ced513d4fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Feb 8 07:33:00 2013 Zachary Scott <zachary@zacharyscott.net>
+
+ * compar.c (cmp_equal): Document ignored exception and return false
+ By Makoto Kishimoto [Bug #7790] [ruby-dev:46925] [ruby-dev:46910]
+
Fri Feb 8 07:17:00 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/dependency_installer.rb: Only install local gems if
diff --git a/compar.c b/compar.c
index 65def78484..6762786276 100644
--- a/compar.c
+++ b/compar.c
@@ -54,6 +54,9 @@ cmp_failed(void)
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns 0. Also returns true if
* _obj_ and _other_ are the same object.
+ *
+ * Even if _obj_ <=> _other_ raised an exception, the exception
+ * is ignoread and returns false.
*/
static VALUE