From 439c7d507c9ee5a637002563d20f00842e657674 Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 8 Nov 2004 15:57:07 +0000 Subject: * regex.c (slow_match): avoid GCC 3.4.x warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- regex.c | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2ee633e6ce..73969f63c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 9 00:53:53 2004 WATANABE Hirofumi + + * regex.c (slow_match): avoid GCC 3.4.x warnings. + Tue Nov 9 00:50:06 2004 Dave Thomas * lib/rdoc/rdoc.rb: Change version numbering of RDoc and ri @@ -7,7 +11,6 @@ Mon Nov 8 23:38:35 2004 Masatoshi SEKI * lib/drb/extservm.rb: add DRb::ExtServManager#uri=. [ruby-dev:24743] - Mon Nov 8 22:20:19 2004 Dave Thomas * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class): diff --git a/regex.c b/regex.c index eb6c9efa54..193e10f667 100644 --- a/regex.c +++ b/regex.c @@ -2623,9 +2623,9 @@ insert_op_2(op, there, current_end, num_1, num_2) #define trans_eq(c1, c2, translate) (translate?(translate[c1]==translate[c2]):((c1)==(c2))) static int slow_match(little, lend, big, bend, translate) - unsigned char *little, *lend; - unsigned char *big, *bend; - unsigned char *translate; + const unsigned char *little, *lend; + const unsigned char *big, *bend; + const unsigned char *translate; { int c; -- cgit v1.2.3