summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-08 15:57:07 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-08 15:57:07 +0000
commit439c7d507c9ee5a637002563d20f00842e657674 (patch)
treef8b882d800c249786d0d62ad018b11d202afcae1 /regex.c
parent443c67721f830153dbcf0b02e2a7cffa83a83e8a (diff)
* 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
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c6
1 files changed, 3 insertions, 3 deletions
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;