summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-26 11:55:15 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-26 11:55:15 +0000
commitb53eecb41cfe1ac98c147076b9df0047426f32f2 (patch)
treea7953eba245873ff0f8fd774f22273e68bd3eaa9 /pp.c
parentc975a42590d4415cbde1dbf125978db0461d609f (diff)
downloadperl-b53eecb41cfe1ac98c147076b9df0047426f32f2.tar.gz
Swap SVt_RV and SVt_NV in the SV ordering.
p4raw-id: //depot/perl@32725
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 f5ff461a99..349e91f03c 100644
--- a/pp.c
+++ b/pp.c
@@ -172,7 +172,7 @@ PP(pp_rv2gv)
const char * const name = CopSTASHPV(PL_curcop);
gv = newGVgen(name);
}
- if (SvTYPE(sv) < SVt_RV)
+ if (SvTYPE(sv) < SVt_RV || SvTYPE(sv) == SVt_NV)
sv_upgrade(sv, SVt_RV);
else if (SvPVX_const(sv)) {
SvPV_free(sv);