diff options
| author | nyamatongwe <devnull@localhost> | 2008-12-23 11:33:11 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2008-12-23 11:33:11 +0000 |
| commit | 261e4529ceb56bd8a0ab00c5505174968f0ff245 (patch) | |
| tree | 2536da04441658778684c6819358ae79c7bb2b7f /src/RESearch.cxx | |
| parent | 99eb09be54a94851377a8b086543da8d1730fb1b (diff) | |
| download | scintilla-mirror-261e4529ceb56bd8a0ab00c5505174968f0ff245.tar.gz | |
Avoid warnings with gcc 4.3
Diffstat (limited to 'src/RESearch.cxx')
| -rw-r--r-- | src/RESearch.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx index 57c745e2d..6c27f1a5a 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -449,11 +449,12 @@ const char *RESearch::Compile(const char *pattern, int length, bool caseSensitiv char mask; /* xor mask -CCL/NCL */ int c1, c2, prevChar; - if (!pattern || !length) + if (!pattern || !length) { if (sta) return 0; else return badpat("No previous regular expression"); + } sta = NOP; const char *p=pattern; /* pattern pointer */ @@ -875,7 +876,7 @@ int RESearch::PMatch(CharacterIndexer &ci, int lp, int endp, char *ap) { eopat[*ap++] = lp; break; case BOW: - if (lp!=bol && iswordc(ci.CharAt(lp-1)) || !iswordc(ci.CharAt(lp))) + if ((lp!=bol && iswordc(ci.CharAt(lp-1))) || !iswordc(ci.CharAt(lp))) return NOTFOUND; break; case EOW: |
