summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2014-11-29 12:17:05 +0100
committerFather Chrysostomos <sprout@cpan.org>2014-11-29 06:11:08 -0800
commit6d59e610a3f269be73ffea56a90d1cd7dc8bf2fd (patch)
tree3323ee9f84c4e0909c8066796c8ea4bfa4e36bbd /toke.c
parente59642234eb8b658c16fed728636bfbbc49c4514 (diff)
downloadperl-6d59e610a3f269be73ffea56a90d1cd7dc8bf2fd.tar.gz
define and use STATIC_ASSERT_STMT for compile-time invariants
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 236acd5adc..2433f1f796 100644
--- a/toke.c
+++ b/toke.c
@@ -730,7 +730,7 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, U32 flags)
parser->bufend = parser->bufptr + SvCUR(parser->linestr);
parser->last_lop = parser->last_uni = NULL;
- assert(FITS_IN_8_BITS(LEX_IGNORE_UTF8_HINTS|LEX_EVALBYTES
+ STATIC_ASSERT_STMT(FITS_IN_8_BITS(LEX_IGNORE_UTF8_HINTS|LEX_EVALBYTES
|LEX_DONT_CLOSE_RSFP));
parser->lex_flags = (U8) (flags & (LEX_IGNORE_UTF8_HINTS|LEX_EVALBYTES
|LEX_DONT_CLOSE_RSFP));