diff options
Diffstat (limited to 'ext/digest')
-rw-r--r-- | ext/digest/digest.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c index 92a925c616..0b910e8c47 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -97,7 +97,7 @@ rb_digest_s_hexencode(VALUE klass, VALUE str) static VALUE rb_digest_instance_update(VALUE self, VALUE str) { - rb_raise(rb_eRuntimeError, "%s does not implement update()", rb_inspect(self)); + rb_raise(rb_eRuntimeError, "%s does not implement update()", RSTRING_PTR(rb_inspect(self))); } /* @@ -115,7 +115,7 @@ rb_digest_instance_update(VALUE self, VALUE str) static VALUE rb_digest_instance_finish(VALUE self) { - rb_raise(rb_eRuntimeError, "%s does not implement finish()", rb_inspect(self)); + rb_raise(rb_eRuntimeError, "%s does not implement finish()", RSTRING_PTR(rb_inspect(self))); } /* @@ -129,7 +129,7 @@ rb_digest_instance_finish(VALUE self) static VALUE rb_digest_instance_reset(VALUE self) { - rb_raise(rb_eRuntimeError, "%s does not implement reset()", rb_inspect(self)); + rb_raise(rb_eRuntimeError, "%s does not implement reset()", RSTRING_PTR(rb_inspect(self))); } /* @@ -358,7 +358,7 @@ rb_digest_instance_length(VALUE self) static VALUE rb_digest_instance_block_length(VALUE self) { - rb_raise(rb_eRuntimeError, "%s does not implement block_length()", rb_inspect(self)); + rb_raise(rb_eRuntimeError, "%s does not implement block_length()", RSTRING_PTR(rb_inspect(self))); } /* @@ -381,7 +381,6 @@ static VALUE rb_digest_class_s_digest(int argc, VALUE *argv, VALUE klass) { VALUE str; - void *pctx; volatile VALUE obj; if (argc < 1) { |