summaryrefslogtreecommitdiffstats
path: root/ext
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
commit4442d7f24f9e6a7ae0fe0b9a0b8e10d2d996af71 (patch)
treeb6159e5eef3ea561245c2d99eb4c5c21fd48ac0b /ext
parent355379b43e0d6dd730c810fff70aaeabf830785c (diff)
downloadruby-4442d7f24f9e6a7ae0fe0b9a0b8e10d2d996af71.tar.gz
ruby-4442d7f24f9e6a7ae0fe0b9a0b8e10d2d996af71.tar.xz
ruby-4442d7f24f9e6a7ae0fe0b9a0b8e10d2d996af71.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@11151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/digest/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index 2cd46590a..4c7cac1ce 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);
}