From: Pavel Charvat Date: Tue, 14 Jan 2014 12:19:58 +0000 (+0100) Subject: PCRE regex: Fixed a harmless compilation warning. X-Git-Tag: v5.99~33 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=1d9a3e3de04d38b74a35a7f70785452d99afaeca;p=libucw.git PCRE regex: Fixed a harmless compilation warning. --- diff --git a/ucw/regex.c b/ucw/regex.c index d149d60f..82ccd457 100644 --- a/ucw/regex.c +++ b/ucw/regex.c @@ -185,7 +185,7 @@ rx_subst(regex *r, const char *by, const char *src, char *dest, uns destlen) uns j = *by++ - '0'; if (j < r->real_matches && r->matches[2*j] >= 0) { - char *s = src + r->matches[2*j]; + const char *s = src + r->matches[2*j]; uns i = r->matches[2*j+1] - r->matches[2*j]; if (dest + i >= end) return -1;