this case. Given that OOK is never undone, we could never have been
correctly upgrading a PV with OOK to HV or AV. I believe that only
SVt_NULL is the only type ever upgraded to HV or AV.
p4raw-id: //depot/perl@24340
if (SvTYPE(sv) == mt)
return TRUE;
- if (mt < SVt_PVIV)
- (void)SvOOK_off(sv);
-
pv = NULL;
cur = 0;
len = 0;
SvNV_set(sv, 0.0);
}
/* to here. */
+ /* XXX? Only SVt_NULL is ever upgraded to AV or HV? */
+ assert(!pv);
+ /* FIXME. Should be able to remove this if the above assertion is
+ genuinely always true. */
+ (void)SvOOK_off(sv);
if (pv)
Safefree(pv);
SvPV_set(sv, (char*)0);