From b9dea008c7bea3457108875a306aee5508c3452e Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 13 Oct 2006 10:55:51 +0000 Subject: * 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 --- ext/digest/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/digest/digest.c') 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); } -- cgit v1.2.3