summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorReckordp <[email protected]>2020-03-07 15:18:48 +0700
committerReckordp <[email protected]>2020-03-07 15:18:48 +0700
commitf319c5fb2641b4cb38ca81f136e808db612aaa6f (patch)
treed540fbbfcc436abbeb049bd7dc1a7d4e061f906b /mrbgems
parent4687f8790c64b6ebfad179b41e30a02c2a4800ba (diff)
downloadmruby-f319c5fb2641b4cb38ca81f136e808db612aaa6f.tar.gz
mruby-f319c5fb2641b4cb38ca81f136e808db612aaa6f.zip
Fix typo
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-io/src/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c
index b94649534..c8f13b313 100644
--- a/mrbgems/mruby-io/src/file.c
+++ b/mrbgems/mruby-io/src/file.c
@@ -283,7 +283,7 @@ static int
mrb_file_is_absolute_path(const char *path)
{
#ifdef _WIN32
-#define IS_PATHSEP(x) (x == '/' || x == '\')
+#define IS_PATHSEP(x) (x == '/' || x == '\\')
if (strlen(path) < 3) return 0;
return (isalpha(path[0]) && path[1] == ':' && IS_PATHSEP(path[2]));
#undef IS_PATHSEP