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 --- regex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regex.c') 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