From 9369118f8f4ed02c76839c6a67c268a2de9acde9 Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 27 Feb 2007 11:51:55 +0000 Subject: Merge changes between r11871 and r11907 from ruby_1_8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@11908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/digest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/digest/digest.c') diff --git a/ext/digest/digest.c b/ext/digest/digest.c index c4a58cf3f6..07484f897f 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -519,7 +519,7 @@ rb_digest_base_update(VALUE self, VALUE str) Data_Get_Struct(self, void, pctx); StringValue(str); - algo->update_func(pctx, RSTRING_PTR(str), RSTRING_LEN(str)); + algo->update_func(pctx, (unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str)); return self; } @@ -537,7 +537,7 @@ rb_digest_base_finish(VALUE self) Data_Get_Struct(self, void, pctx); str = rb_str_new(0, algo->digest_len); - algo->finish_func(pctx, RSTRING_PTR(str)); + algo->finish_func(pctx, (unsigned char *)RSTRING_PTR(str)); /* avoid potential coredump caused by use of a finished context */ algo->init_func(pctx); -- cgit v1.2.3