From: Rafael Garcia-Suarez Date: Mon, 11 Sep 2006 10:19:20 +0000 (+0000) Subject: Fix definition of macro HOP3 (spotted by a gcc warning) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7409c1baa36b49cba586d35d8afab7cf283d03e;p=p5sagit%2Fp5-mst-13.2.git Fix definition of macro HOP3 (spotted by a gcc warning) p4raw-id: //depot/perl@28818 --- diff --git a/regexec.c b/regexec.c index 49ea3ea..bfd81f8 100644 --- a/regexec.c +++ b/regexec.c @@ -109,7 +109,7 @@ ? (U8*)pos - off \ : NULL) -#define HOP3(pos,off,lim) (PL_reg_match_utf8 ? reghop3((U8*)pos, off, (U8*)lim) : (U8*)(pos + off)) +#define HOP3(pos,off,lim) (PL_reg_match_utf8 ? reghop3((U8*)(pos), off, (U8*)(lim)) : (U8*)(pos + off)) #define HOP3c(pos,off,lim) ((char*)HOP3(pos,off,lim)) #define LOAD_UTF8_CHARCLASS(class,str) STMT_START { \