Silence a compilation warning on Win32
Steve Hay [Thu, 28 Apr 2005 16:38:51 +0000 (16:38 +0000)]
p4raw-id: //depot/perl@24349

pp.c

diff --git a/pp.c b/pp.c
index 4500c57..d107ab5 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -1486,7 +1486,7 @@ PP(pp_repeat)
            if (count < 1)
                SvCUR_set(TARG, 0);
            else {
-               IV max = count * len;
+               STRLEN max = (UV)count * len;
                if (len > ((MEM_SIZE)~0)/count)
                     Perl_croak(aTHX_ oom_string_extend);
                MEM_WRAP_CHECK_1(max, char, oom_string_extend);