summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-11 18:26:31 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-11 18:26:31 +0000
commit78d0cf80609ca6ef7050cc76fbcfe7807885b9ce (patch)
tree240240768198470b2d64763680bfb13fc6bfd65b /util.c
parent1a236485853de3b849a717a26236cd3500843c4e (diff)
downloadperl-78d0cf80609ca6ef7050cc76fbcfe7807885b9ce.tar.gz
Change SvTAIL() to check that both SVpbm_TAIL|SVpbm_VALID are true.
SVpbm_VALID is the same bit value is SVf_IVisUV, which means that PVBMs can't actually ever be IOK. Therefore move BmUSEFUL() into the IV union, and save one I32 per PVBM. p4raw-id: //depot/perl@29518
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 358af393a3..fff8c8a7d9 100644
--- a/util.c
+++ b/util.c
@@ -493,6 +493,7 @@ Perl_fbm_compile(pTHX_ SV *sv, U32 flags)
if (len == 0) /* TAIL might be on a zero-length string. */
return;
SvUPGRADE(sv, SVt_PVBM);
+ SvIOK_off(sv);
if (len > 2) {
const unsigned char *sb;
const U8 mlen = (len>255) ? 255 : (U8)len;