summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-07 13:15:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-07 13:15:13 +0000
commit42642407591bd76d2f68eed559e42deef9adc157 (patch)
tree29886d4fd73b6ad11f349f53b2c5a187e8d7adb0 /ext/readline
parent593c24f87c388e607a23d56b8941ca6cb4ebf866 (diff)
* ext/readline/readline.c (insert_ignore_escape): Add a cast to
unsigned char * before dereference. This suppress a warning on Cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 502e73e..fe5c723 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -242,7 +242,7 @@ insert_ignore_escape(VALUE self, VALUE prompt)
rb_str_cat(last_prompt, s0, s - s0 - 1);
s0 = s - 1;
while (++s < e && *s) {
- if (ISALPHA(*s)) {
+ if (ISALPHA(*(unsigned char *)s)) {
if (!ignoring) {
ignoring = 1;
rb_str_cat(last_prompt, ignore_code+0, 1);