This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948d237
)
sv.h: Correct assertion in BmUSEFUL
author
Father Chrysostomos
<sprout@cpan.org>
Fri, 21 Jun 2013 20:26:54 +0000
(13:26 -0700)
committer
Father 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
patch
|
blob
|
blame
|
history
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(!Sv
I
OK(_bmuseful)); \
+ assert(!Sv
N
OK(_bmuseful)); \
&(((XPVMG*) SvANY(_bmuseful))->xnv_u.xbm_useful); \
}))
#else