diff options
| author | cremno <[email protected]> | 2014-06-06 00:13:24 +0200 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-06-06 00:13:24 +0200 |
| commit | 71c7d587368cac3101045d8651e64f46a8e1dded (patch) | |
| tree | 6aa92fad44bab586ef9cbd3ad7a840063f472e4c | |
| parent | 1a5841b4b10a0e59446df5235c92e679eb3092ef (diff) | |
| download | mruby-71c7d587368cac3101045d8651e64f46a8e1dded.tar.gz mruby-71c7d587368cac3101045d8651e64f46a8e1dded.zip | |
partially revert 1a5841b for mirb
Fix compilation fail caused by GNU Readline and `ISPRINT`.
Also add missing `unsigned char` cast.
| -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 c742d28fb..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; |
