aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-13 10:55:51 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-13 10:55:51 +0000
commitb9dea008c7bea3457108875a306aee5508c3452e (patch)
treeb6159e5eef3ea561245c2d99eb4c5c21fd48ac0b
parent3873d0fba36db7aa8d6a0b57e1dd1f1df1fa4e46 (diff)
downloadruby-b9dea008c7bea3457108875a306aee5508c3452e.tar.gz
* ext/digest/digest.c (rb_digest_base_equal): Again, should call
digest() of a subclass instead of the one defined in the base class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/digest/digest.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 28958b70bc..d70ff8e0bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Oct 13 19:53:59 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_base_equal): Again, should call
+ digest() of a subclass instead of the one defined in the base
+ class.
+
Fri Oct 13 18:19:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c: Class#inherited RDoc added. a patch from Daniel
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index 2cd46590ae..4c7cac1cec 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -385,7 +385,7 @@ rb_digest_base_equal(VALUE self, VALUE other)
algo = get_digest_base_metadata(klass);
if (RSTRING_LEN(str2) == algo->digest_len)
- str1 = rb_digest_base_digest(self);
+ str1 = rb_funcall(self, id_digest, 0);
else
str1 = rb_digest_base_hexdigest(self);
}