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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-06-07 22:42:31 +09:00
parent 32e96a1d4a
commit b10a6fd472
+2 -2
View File
@@ -974,8 +974,8 @@ static int
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);
const char *s = src, *ss = s;
const char *send = src + slen;
const char *s = (const char*)src, *ss = s;
const char *send = s + slen;
char *ptr = RSTRING_PTR(buf);
int c1, c2;