fix #18266 sprintf format mismatch
Hugo van der Sanden [Mon, 9 Dec 2002 00:14:58 +0000 (00:14 +0000)]
p4raw-id: //depot/perl@18268

regcomp.c

index 1f53655..4813261 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -5075,7 +5075,7 @@ Perl_save_re_context(pTHX)
 
        if (PL_curpm && (rx = PM_GETRE(PL_curpm))) {
            for (i = 1; i <= rx->nparens; i++) {
-               sprintf(digits, "%lu", i);
+               sprintf(digits, "%lu", (long)i);
                if ((mgv = gv_fetchpv(digits, FALSE, SVt_PV)))
                    save_scalar(mgv);
            }