pack.c: fix 'void*` to `char*` assignment.

parent 32e96a1d
...@@ -974,8 +974,8 @@ static int ...@@ -974,8 +974,8 @@ static int
unpack_M(mrb_state *mrb, const void *src, int slen, mrb_value ary, unsigned int flags) unpack_M(mrb_state *mrb, const void *src, int slen, mrb_value ary, unsigned int flags)
{ {
mrb_value buf = mrb_str_new(mrb, 0, slen); mrb_value buf = mrb_str_new(mrb, 0, slen);
const char *s = src, *ss = s; const char *s = (const char*)src, *ss = s;
const char *send = src + slen; const char *send = s + slen;
char *ptr = RSTRING_PTR(buf); char *ptr = RSTRING_PTR(buf);
int c1, c2; int c1, c2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment