mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #6462 from dearblue/mruby-io
This commit is contained in:
@@ -381,7 +381,7 @@ mrb_file__gethome(mrb_state *mrb, mrb_value klass)
|
||||
char *pathp = RSTRING_PTR(path);
|
||||
const char *const pathend = pathp + RSTRING_LEN(path);
|
||||
for (;;) {
|
||||
pathp = memchr((void*)pathp, '\\', (size_t)(pathend - pathp));
|
||||
pathp = (char*)memchr((void*)pathp, '\\', (size_t)(pathend - pathp));
|
||||
if (!pathp) break;
|
||||
*pathp++ = '/';
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ mrb_mruby_io_gem_test(mrb_state* mrb)
|
||||
char *pathp = RSTRING_PTR(path);
|
||||
const char *const pathend = pathp + RSTRING_LEN(path);
|
||||
for (;;) {
|
||||
pathp = memchr(pathp, '\\', pathend - pathp);
|
||||
pathp = (char*)memchr(pathp, '\\', pathend - pathp);
|
||||
if (!pathp) break;
|
||||
*pathp++ = '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user