diff options
author | David Mitchell <davem@iabyn.com> | 2015-02-24 12:12:21 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-02-24 12:12:21 +0000 |
commit | b53eee5dcaba7597084a8dcdea596adfbc2b9544 (patch) | |
tree | 7487b71fef4b31e97e0f2a8fa7abb2069ffdfc76 /regexec.c | |
parent | c7e74775aeccc7506df4216c4a137b2c702187fc (diff) | |
download | perl-b53eee5dcaba7597084a8dcdea596adfbc2b9544.tar.gz |
silence some compiler warnings.
(Some compilers have strange ideas about the signedness of the bool type
verses the signedness of a boolean expression like a == b).
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5589,7 +5589,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog) n = (NEXTCHR_IS_EOS) ? isWORDCHAR_L1('\n') : isWORDCHAR_utf8((U8*)locinput); - match = ln != n; + match = cBOOL(ln != n); break; case GCB_BOUND: if (locinput == reginfo->strbeg || NEXTCHR_IS_EOS) { @@ -5658,7 +5658,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog) n = (NEXTCHR_IS_EOS) ? isWORDCHAR_L1('\n') : isWORDCHAR_L1(nextchr); - match = ln != n; + match = cBOOL(ln != n); break; case GCB_BOUND: @@ -8004,7 +8004,7 @@ S_regrepeat(pTHX_ regexp *prog, char **startposp, const regnode *p, char *loceol = reginfo->strend; /* local version */ I32 hardcount = 0; /* How many matches so far */ bool utf8_target = reginfo->is_utf8_target; - int to_complement = 0; /* Invert the result? */ + unsigned int to_complement = 0; /* Invert the result? */ UV utf8_flags; _char_class_number classnum; #ifndef DEBUGGING |