From: Jarkko Hietaniemi Date: Thu, 3 Jan 2002 13:41:38 +0000 (+0000) Subject: Cast. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=664232547b20ac25929b13c5d424129717d19e08;p=p5sagit%2Fp5-mst-13.2.git Cast. p4raw-id: //depot/perl@14037 --- diff --git a/regexec.c b/regexec.c index 75ea152..fe9ad4b 100644 --- a/regexec.c +++ b/regexec.c @@ -986,8 +986,8 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta c = utf8_to_uvchr((U8*)s, &len); if ( c == c1 && (ln == len || - ibcmp_utf8(s, 0 , 0, do_utf8, - m, 0 , ln, UTF)) + ibcmp_utf8(s, (char **)0, 0, do_utf8, + m, (char **)0, ln, UTF)) && (norun || regtry(prog, s)) ) goto got_it; else { @@ -996,10 +996,10 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta if ( f != c && (f == c1 || f == c2) && (ln == foldlen || - !ibcmp_utf8((char *)foldbuf, - 0, foldlen, do_utf8, + !ibcmp_utf8((char *) foldbuf, + (char **)0, foldlen, do_utf8, m, - 0, ln, UTF)) + (char **)0, ln, UTF)) && (norun || regtry(prog, s)) ) goto got_it; } @@ -1023,8 +1023,8 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta if ( (c == c1 || c == c2) && (ln == len || - ibcmp_utf8(s, 0, 0, do_utf8, - m, 0, ln, UTF)) + ibcmp_utf8(s, (char **)0, 0, do_utf8, + m, (char **)0, ln, UTF)) && (norun || regtry(prog, s)) ) goto got_it; else { @@ -1034,9 +1034,9 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta && (f == c1 || f == c2) && (ln == foldlen || !ibcmp_utf8((char *)foldbuf, - 0, foldlen, do_utf8, + (char **)0, foldlen, do_utf8, m, - 0, ln, UTF)) + (char **)0, ln, UTF)) && (norun || regtry(prog, s)) ) goto got_it; }