aboutsummaryrefslogtreecommitdiffstats
path: root/ext/digest/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/digest.c')
-rw-r--r--ext/digest/digest.c4
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;