diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-11-06 22:21:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-11-06 22:21:05 +0000 |
commit | 9c6bc640227cd4fa081b32554378abe794cacfc0 (patch) | |
tree | a489754dba985d4d26d03fd993aed577a36e9a83 /pp.c | |
parent | 797c717188459bd306f22db4f33d8350f22fec7c (diff) | |
download | perl-9c6bc640227cd4fa081b32554378abe794cacfc0.tar.gz |
assert() that SvPV_set() isn't used on arrays.
p4raw-id: //depot/perl@29221
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4276,7 +4276,7 @@ PP(pp_splice) *dst-- = *src--; } dst = AvARRAY(ary); - SvPV_set(ary, (char*)(AvARRAY(ary) - diff)); /* diff is negative */ + AvARRAY(ary) = AvARRAY(ary) - diff; /* diff is negative */ AvMAX(ary) += diff; } else { @@ -4312,7 +4312,7 @@ PP(pp_splice) dst = src - diff; Move(src, dst, offset, SV*); } - SvPV_set(ary, (char*)(AvARRAY(ary) - diff));/* diff is positive */ + AvARRAY(ary) = AvARRAY(ary) - diff;/* diff is positive */ AvMAX(ary) += diff; AvFILLp(ary) += diff; } |