diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 12:48:48 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 12:48:48 +0900 |
| commit | 232b8b07e4d333129bf4eb83b48a408dcc130a55 (patch) | |
| tree | 6014e6666183bd613366a1bdca53303c544b9823 /mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | |
| parent | ccd871bcca0e55fd08bbe00ad4fd7c380d720780 (diff) | |
| parent | 71c7d587368cac3101045d8651e64f46a8e1dded (diff) | |
| download | mruby-232b8b07e4d333129bf4eb83b48a408dcc130a55.tar.gz mruby-232b8b07e4d333129bf4eb83b48a408dcc130a55.zip | |
Merge branch 'ascii' of https://github.com/cremno/mruby into cremno-ascii
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools/mirb/mirb.c')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index 5c9524161..67f0d057a 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -258,7 +258,7 @@ check_keyword(const char *buf, const char *word) size_t len = strlen(word); /* skip preceding spaces */ - while (*p && isspace(*p)) { + while (*p && isspace((unsigned char)*p)) { p++; } /* check keyword */ @@ -268,7 +268,7 @@ check_keyword(const char *buf, const char *word) p += len; /* skip trailing spaces */ while (*p) { - if (!isspace(*p)) return 0; + if (!isspace((unsigned char)*p)) return 0; p++; } return 1; |
