From: Jarkko Hietaniemi Date: Sun, 16 Mar 2003 16:40:06 +0000 (+0000) Subject: Signedness nits. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e43f4674257b58e1586fd5e88cdab2ae2f833ee;p=p5sagit%2Fp5-mst-13.2.git Signedness nits. p4raw-id: //depot/perl@18995 --- diff --git a/regcomp.c b/regcomp.c index c738714..2f1f4e3 100644 --- a/regcomp.c +++ b/regcomp.c @@ -925,8 +925,8 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, I32 *deltap, reg MAGIC *mg = SvUTF8(sv) && SvMAGICAL(sv) ? mg_find(sv, PERL_MAGIC_utf8) : NULL; if (mg && mg->mg_len >= 0) - mg->mg_len += utf8_length(STRING(scan), - STRING(scan)+STR_LEN(scan)); + mg->mg_len += utf8_length((U8*)STRING(scan), + (U8*)STRING(scan)+STR_LEN(scan)); } if (UTF) SvUTF8_on(data->last_found);