summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-03-07 19:03:45 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-03-07 19:03:45 +0900
commit690175272335ecc8a7a177de91c2e7f49c662846 (patch)
treed2d5a9e51e267b3c4efcf9199d3ddb53f806a37d
parent886355007c09ead1d71d552bbc585b6ee6f16d3b (diff)
downloadmruby-690175272335ecc8a7a177de91c2e7f49c662846.tar.gz
mruby-690175272335ecc8a7a177de91c2e7f49c662846.zip
Use in-house macro `ISALPHA` instead of `isalpha`; ref #4950
-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 ffce0ddcb..3f3b6bb25 100644
--- a/mrbgems/mruby-io/src/file.c
+++ b/mrbgems/mruby-io/src/file.c
@@ -284,7 +284,7 @@ mrb_file_is_absolute_path(const char *path)
{
#ifdef _WIN32
#define IS_PATHSEP(x) (x == '/' || x == '\\')
- if (isalpha(path[0]))
+ if (ISALPHA(path[0]))
return (strlen(path) > 2 && path[1] == ':' && IS_PATHSEP(path[2]));
else
return (IS_PATHSEP(path[0]) && IS_PATHSEP(path[1]));