diff --git a/ChangeLog b/ChangeLog index 97c4876959..c6e03ea563 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 26 15:12:12 2006 NAKAMURA Usaku + + * ext/digest/digest.c (Init_digest): typo. + Wed Oct 25 17:16:05 2006 Akinori MUSHA * test/digest/test_digest_hmac.rb: added. diff --git a/ext/digest/digest.c b/ext/digest/digest.c index 4a5245f911..5d58149b50 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -608,7 +608,7 @@ Init_digest(void) rb_define_method(rb_mDigest_Instance, "digest!", rb_digest_instance_digest_bang, 0); rb_define_method(rb_mDigest_Instance, "hexdigest", rb_digest_instance_hexdigest, -1); rb_define_method(rb_mDigest_Instance, "hexdigest!", rb_digest_instance_hexdigest_bang, 0); - rb_define_method(rb_mDigest_Instance, "to_s", rb_digest_instance_hexdigest, 0); + rb_define_method(rb_mDigest_Instance, "to_s", rb_digest_instance_to_s, 0); rb_define_method(rb_mDigest_Instance, "length", rb_digest_instance_length, 0); rb_define_method(rb_mDigest_Instance, "size", rb_digest_instance_length, 0);