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 | a65440849ea82ada8a1170e52a3330acd12ddeb2 (patch) | |
| tree | dc7c1492dff4de3cfcdada323688dde22de1405d | |
| parent | defec5c2f5540e6ffcdfad40dfda3f339e0f7dd1 (diff) | |
| download | ruby-a65440849ea82ada8a1170e52a3330acd12ddeb2.tar.gz ruby-a65440849ea82ada8a1170e52a3330acd12ddeb2.tar.xz ruby-a65440849ea82ada8a1170e52a3330acd12ddeb2.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@11148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | ext/digest/digest.c | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,11 @@ +Fri Oct 13 02:42:00 2006 Akinori MUSHA <knu@iDaemons.org> + + * ext/digest/digest.c (rb_digest_base_equal): Should call digest() + of a subclass instead of the one defined in the base class. + Fri Oct 13 02:30:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> -[] * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend + * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend base directory to load path. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should diff --git a/ext/digest/digest.c b/ext/digest/digest.c index b8144f370..2cd46590a 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; |
