1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
knu 2006-10-13 10:55:51 +00:00
parent 3873d0fba3
commit b9dea008c7
2 changed files with 7 additions and 1 deletions

View file

@ -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> Fri Oct 13 18:19:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c: Class#inherited RDoc added. a patch from Daniel * object.c: Class#inherited RDoc added. a patch from Daniel

View file

@ -385,7 +385,7 @@ rb_digest_base_equal(VALUE self, VALUE other)
algo = get_digest_base_metadata(klass); algo = get_digest_base_metadata(klass);
if (RSTRING_LEN(str2) == algo->digest_len) if (RSTRING_LEN(str2) == algo->digest_len)
str1 = rb_digest_base_digest(self); str1 = rb_funcall(self, id_digest, 0);
else else
str1 = rb_digest_base_hexdigest(self); str1 = rb_digest_base_hexdigest(self);
} }