sv.h: Correct assertion in BmUSEFUL
authorFather Chrysostomos <sprout@cpan.org>
Fri, 21 Jun 2013 20:26:54 +0000 (13:26 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 23 Jun 2013 06:16:40 +0000 (23:16 -0700)
BmUSEFUL uses the NV slot, not the IV slot.  So asserting that it is
not IOK is not all that useful.

sv.h

diff --git a/sv.h b/sv.h
index 0ba73d1..98d712d 100644 (file)
--- 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