summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-06-21 13:26:54 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-06-22 23:16:40 -0700
commitf156091762ac3e6be4932562e47615b3a785aa6f (patch)
tree9b3596af0974c2220473be4b497f6e8a436ee15a /sv.h
parent948d23704c370224e484b4083be90fba01a7439e (diff)
downloadperl-f156091762ac3e6be4932562e47615b3a785aa6f.tar.gz
sv.h: Correct assertion in BmUSEFUL
BmUSEFUL uses the NV slot, not the IV slot. So asserting that it is not IOK is not all that useful.
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 0ba73d18e7..98d712d5da 100644
--- a/sv.h
+++ b/sv.h
@@ -1361,7 +1361,7 @@ sv_force_normal does nothing.
(*({ SV *const _bmuseful = MUTABLE_SV(sv); \
assert(SvTYPE(_bmuseful) == SVt_PVMG); \
assert(SvVALID(_bmuseful)); \
- assert(!SvIOK(_bmuseful)); \
+ assert(!SvNOK(_bmuseful)); \
&(((XPVMG*) SvANY(_bmuseful))->xnv_u.xbm_useful); \
}))
#else