diff options
author | nyamatongwe <devnull@localhost> | 2011-06-02 17:12:38 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-02 17:12:38 +1000 |
commit | f7061a7293606238642bf995568479202d7c5bd5 (patch) | |
tree | dd155ef20111423bf3176d9b74128391ffc6fdcf /src | |
parent | 6a7347985c315a36fe0de67bdef2702d466348eb (diff) | |
download | scintilla-mirror-f7061a7293606238642bf995568479202d7c5bd5.tar.gz |
Fix warnings from an ignored modifier and character indices.
Diffstat (limited to 'src')
-rw-r--r-- | src/RESearch.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx index f26375fe5..ffcc58d36 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -321,7 +321,7 @@ void RESearch::ChSetWithCase(unsigned char c, bool caseSensitive) { } } -const unsigned char escapeValue(unsigned char ch) { +unsigned char escapeValue(unsigned char ch) { switch (ch) { case 'a': return '\a'; case 'b': return '\b'; @@ -888,10 +888,10 @@ int RESearch::PMatch(CharacterIndexer &ci, int lp, int endp, char *ap) { return NOTFOUND; break; case BOT: - bopat[*ap++] = lp; + bopat[static_cast<int>(*ap++)] = lp; break; case EOT: - eopat[*ap++] = lp; + eopat[static_cast<int>(*ap++)] = lp; break; case BOW: if ((lp!=bol && iswordc(ci.CharAt(lp-1))) || !iswordc(ci.CharAt(lp))) |