mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixes for compiling mruby as C++
This commit is contained in:
committed by
Yukihiro "Matz" Matsumoto
parent
477e12c182
commit
1af9e363f2
+1
-1
@@ -361,7 +361,7 @@ mrb_memsearch(const void *x0, mrb_int m, const void *y0, mrb_int n)
|
||||
return 0;
|
||||
}
|
||||
else if (m == 1) {
|
||||
const unsigned char *ys = memchr(y, *x, n);
|
||||
const unsigned char *ys = (const unsigned char *)memchr(y, *x, n);
|
||||
|
||||
if (ys)
|
||||
return ys - y;
|
||||
|
||||
Reference in New Issue
Block a user