summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-11-06 08:13:09 +0000
committerNicholas Clark <nick@ccl4.org>2006-11-06 08:13:09 +0000
commit281ab51b33babea2132e1437175b7fc2114c8232 (patch)
tree35d2b0eb482e0be0b9c3dfb8184f4b2d1786d28e /sv.h
parent2f1dcba4f8bdb1757fa83218f6417bdb14e82467 (diff)
downloadperl-281ab51b33babea2132e1437175b7fc2114c8232.tar.gz
PVCVs no longer allocate memory for the SvNVX slot, so assert that
no-one is trying to access it. p4raw-id: //depot/perl@29206
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index ab09bba306..744bb39adb 100644
--- a/sv.h
+++ b/sv.h
@@ -1170,6 +1170,7 @@ the scalar's value cannot change unless written to.
assert(SvTYPE(_svi) == SVt_NV || SvTYPE(_svi) >= SVt_PVNV); \
assert(SvTYPE(_svi) != SVt_PVAV); \
assert(SvTYPE(_svi) != SVt_PVHV); \
+ assert(SvTYPE(_svi) != SVt_PVCV); \
assert(SvTYPE(_svi) != SVt_PVFM); \
assert(!isGV_with_GP(_svi)); \
&(((XPVNV*) SvANY(_svi))->xnv_u.xnv_nv); \