summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-03-27 18:07:52 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-03-27 12:30:11 +0000
commit19a94d75aea23d860dc398284bf0810d3e2bbfa2 (patch)
treeabd158e3b58402c2c78f68aea12fb4a6ca4e40cb /pp.c
parentd3df0cfdbd533cd6ac647744531e0fed3b26c653 (diff)
downloadperl-19a94d75aea23d860dc398284bf0810d3e2bbfa2.tar.gz
stop the cargo cult of (MEM_SIZE)~0
Message-Id: <200703271207.l2RC7qOC443040@kosh.hut.fi> p4raw-id: //depot/perl@30774
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 173f81dd91..00aa6e49d2 100644
--- a/pp.c
+++ b/pp.c
@@ -1537,7 +1537,7 @@ PP(pp_repeat)
SvCUR_set(TARG, 0);
else {
const STRLEN max = (UV)count * len;
- if (len > ((MEM_SIZE)~0)/count)
+ if (len > MEM_SIZE_MAX / count)
Perl_croak(aTHX_ oom_string_extend);
MEM_WRAP_CHECK_1(max, char, oom_string_extend);
SvGROW(TARG, max + 1);