diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 12:49:55 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 12:49:55 +0900 |
| commit | a8636103a224a2d95fb63fd588c69df2b6e053af (patch) | |
| tree | 6014e6666183bd613366a1bdca53303c544b9823 /mrbgems/mruby-bin-mirb/tools/mirb | |
| parent | ccd871bcca0e55fd08bbe00ad4fd7c380d720780 (diff) | |
| parent | 232b8b07e4d333129bf4eb83b48a408dcc130a55 (diff) | |
| download | mruby-a8636103a224a2d95fb63fd588c69df2b6e053af.tar.gz mruby-a8636103a224a2d95fb63fd588c69df2b6e053af.zip | |
git push origin masterMerge branch 'cremno-ascii'
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools/mirb')
| -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; |
