diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-10-24 22:35:51 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-10-24 23:00:29 -0600 |
commit | b54f893dc956463c59f2f0ee0ec913515bacd4c1 (patch) | |
tree | 9d32f0c20aedc8dfbc3578d2e5c49d69dc2cee6d /toke.c | |
parent | d4fcb1dc97692eaf7376c38783103c51b664ffc5 (diff) | |
download | perl-b54f893dc956463c59f2f0ee0ec913515bacd4c1.tar.gz |
Silence some Win32 compiler warnings
These get rid of some "possible loss of data" warnings
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -767,8 +767,11 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, U32 flags) parser->linestart = SvPVX(parser->linestr); parser->bufend = parser->bufptr + SvCUR(parser->linestr); parser->last_lop = parser->last_uni = NULL; - parser->lex_flags = flags & (LEX_IGNORE_UTF8_HINTS|LEX_EVALBYTES - |LEX_DONT_CLOSE_RSFP); + + assert(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)); parser->in_pod = parser->filtered = 0; } @@ -4791,7 +4794,7 @@ Perl_yylex(pTHX) char *d; STRLEN len; bool bof = FALSE; - const bool saw_infix_sigil = PL_parser->saw_infix_sigil; + const bool saw_infix_sigil = cBOOL(PL_parser->saw_infix_sigil); U8 formbrack = 0; U32 fake_eof = 0; |