summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-06-15 07:17:17 +0000
committerNicholas Clark <nick@ccl4.org>2004-06-15 07:17:17 +0000
commit2649f2c19a9dc4cac2cf535de25fe7b36dee8328 (patch)
treec20e9da3d3e4d83827df2dfbee77900644959364 /sv.h
parentffb05e06c71730527accd4c1399a30e98fb7f6d5 (diff)
downloadperl-2649f2c19a9dc4cac2cf535de25fe7b36dee8328.tar.gz
Assert SvTYPE is at least PGMV whenever accessing SvSTASH
p4raw-id: //depot/perl@22935
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.h b/sv.h
index bc03bb8a15..229690ce61 100644
--- a/sv.h
+++ b/sv.h
@@ -742,7 +742,7 @@ and leaves the UTF-8 status as it was.
#ifdef DEBUGGING
#define SvMAGIC(sv) ((assert(SvTYPE(sv) >= SVt_PVMG)), ((XPVMG*) SvANY(sv))->xmg_magic)
-#define SvSTASH(sv) ((XPVMG*) SvANY(sv))->xmg_stash
+#define SvSTASH(sv) ((assert(SvTYPE(sv) >= SVt_PVMG)), (XPVMG*) SvANY(sv))->xmg_stash
#else
#define SvMAGIC(sv) ((XPVMG*) SvANY(sv))->xmg_magic
#define SvSTASH(sv) ((XPVMG*) SvANY(sv))->xmg_stash