Signedness nits.
Jarkko Hietaniemi [Sun, 16 Mar 2003 16:40:06 +0000 (16:40 +0000)]
p4raw-id: //depot/perl@18995

regcomp.c

index c738714..2f1f4e3 100644 (file)
--- 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);