summaryrefslogtreecommitdiff
path: root/lib/readline/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/text.c')
-rw-r--r--lib/readline/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readline/text.c b/lib/readline/text.c
index 0370029c..7f1f076d 100644
--- a/lib/readline/text.c
+++ b/lib/readline/text.c
@@ -1103,7 +1103,7 @@ _rl_rubout_char (count, key)
c = rl_line_buffer[--rl_point];
rl_delete_text (rl_point, orig_point);
/* The erase-at-end-of-line hack is of questionable merit now. */
- if (rl_point == rl_end && ISPRINT (c) && _rl_last_c_pos)
+ if (rl_point == rl_end && ISPRINT ((unsigned char)c) && _rl_last_c_pos)
{
int l;
l = rl_character_len (c, rl_point);
@@ -1337,7 +1337,7 @@ rl_change_case (count, op)
}
else
nop = op;
- if (MB_CUR_MAX == 1 || rl_byte_oriented || isascii (c))
+ if (MB_CUR_MAX == 1 || rl_byte_oriented || isascii ((unsigned char)c))
{
nc = (nop == UpCase) ? _rl_to_upper (c) : _rl_to_lower (c);
rl_line_buffer[start] = nc;