diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-12-11 18:26:31 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-12-11 18:26:31 +0000 |
commit | 78d0cf80609ca6ef7050cc76fbcfe7807885b9ce (patch) | |
tree | 240240768198470b2d64763680bfb13fc6bfd65b /util.c | |
parent | 1a236485853de3b849a717a26236cd3500843c4e (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |