diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-12 17:43:17 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-12 17:43:17 +0000 |
commit | 53b4c90110c78fa8b9560b81ededa01f48bed72d (patch) | |
tree | dc7c1492dff4de3cfcdada323688dde22de1405d /ext | |
parent | 272560359a3ec52a00de51b5c8d01fe72d44348d (diff) |
* ext/digest/digest.c (rb_digest_base_equal): 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@11148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/digest/digest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c index b8144f3706..2cd46590ae 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -376,8 +376,8 @@ rb_digest_base_equal(VALUE self, VALUE other) klass = rb_obj_class(self); if (rb_obj_class(other) == klass) { - str1 = rb_digest_base_digest(self); - str2 = rb_digest_base_digest(other); + str1 = rb_funcall(self, id_digest, 0); + str2 = rb_funcall(other, id_digest, 0); } else { StringValue(other); str2 = other; |