summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-01-15 08:09:30 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-01-15 07:45:28 +0000
commitaa1f7c5b6ec66b97fca8377d522bdd9e4ff098de (patch)
tree0b750c59a8e2908c3fcb8ca708baf2359a603d33 /op.c
parent4dc4bba60f13ed8dad154870e750085525979ec1 (diff)
downloadperl-aa1f7c5b6ec66b97fca8377d522bdd9e4ff098de.tar.gz
g++ fixes
Message-Id: <20070115040930.8685843A67@anubis.hut.fi> p4raw-id: //depot/perl@29812
Diffstat (limited to 'op.c')
-rw-r--r--op.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/op.c b/op.c
index f0f26dc4e6..40275ab472 100644
--- a/op.c
+++ b/op.c
@@ -3096,8 +3096,10 @@ Perl_pmtrans(pTHX_ OP *o, OP *expr, OP *repl)
else if (j >= (I32)rlen)
j = rlen - 1;
else {
- tbl = PerlMemShared_realloc(tbl,
- (0x101+rlen-j) * sizeof(short));
+ tbl =
+ (short *)
+ PerlMemShared_realloc(tbl,
+ (0x101+rlen-j) * sizeof(short));
cPVOPo->op_pv = (char*)tbl;
}
tbl[0x100] = (short)(rlen - j);