ruby-changes:28549
From: akr <ko1@a...>
Date: Tue, 7 May 2013 22:15:24 +0900 (JST)
Subject: [ruby-changes:28549] akr:r40601 (trunk): * ext/readline/readline.c (insert_ignore_escape): Add a cast to
akr 2013-05-07 22:15:13 +0900 (Tue, 07 May 2013) New Revision: 40601 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40601 Log: * ext/readline/readline.c (insert_ignore_escape): Add a cast to unsigned char * before dereference. This suppress a warning on Cygwin. Modified files: trunk/ChangeLog trunk/ext/readline/readline.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40600) +++ ChangeLog (revision 40601) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue May 7 22:12:34 2013 Tanaka Akira <akr@f...> + + * 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@f...> * ext/socket/ancdata.c (bsock_recvmsg_internal): Add a cast to Index: ext/readline/readline.c =================================================================== --- ext/readline/readline.c (revision 40600) +++ ext/readline/readline.c (revision 40601) @@ -242,7 +242,7 @@ insert_ignore_escape(VALUE self, VALUE p https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L242 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/