mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
593c24f87c
commit
4264240759
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Tue May 7 22:12:34 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/readline/readline.c (insert_ignore_escape): Add a cast to
|
||||||
|
unsigned char * before dereference.
|
||||||
|
This suppress a warning on Cygwin.
|
||||||
|
|
||||||
Tue May 7 12:15:24 2013 Tanaka Akira <akr@fsij.org>
|
Tue May 7 12:15:24 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/socket/ancdata.c (bsock_recvmsg_internal): Add a cast to
|
* ext/socket/ancdata.c (bsock_recvmsg_internal): Add a cast to
|
||||||
|
|
|
@ -242,7 +242,7 @@ insert_ignore_escape(VALUE self, VALUE prompt)
|
||||||
rb_str_cat(last_prompt, s0, s - s0 - 1);
|
rb_str_cat(last_prompt, s0, s - s0 - 1);
|
||||||
s0 = s - 1;
|
s0 = s - 1;
|
||||||
while (++s < e && *s) {
|
while (++s < e && *s) {
|
||||||
if (ISALPHA(*s)) {
|
if (ISALPHA(*(unsigned char *)s)) {
|
||||||
if (!ignoring) {
|
if (!ignoring) {
|
||||||
ignoring = 1;
|
ignoring = 1;
|
||||||
rb_str_cat(last_prompt, ignore_code+0, 1);
|
rb_str_cat(last_prompt, ignore_code+0, 1);
|
||||||
|
|
Loading…
Reference in a new issue