diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-07-25 22:15:20 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-07-25 22:15:20 +1000 |
| commit | 74c84662195aafc20b7e65d59d5c2881a9c2687e (patch) | |
| tree | 7049fa18b39304fbfd2bed6975febc445d043923 | |
| parent | f41794f988b72fd4d7ac905f939ff868ba94e991 (diff) | |
| download | scintilla-mirror-74c84662195aafc20b7e65d59d5c2881a9c2687e.tar.gz | |
Make Coverity happy. Ensure return value is seen to never be negative although
it never really could be.
| -rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 578adfefd..b8ab420fd 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -825,7 +825,7 @@ int Document::SafeSegment(const char *text, int length, int lengthSegment) const return length; int lastSpaceBreak = -1; int lastPunctuationBreak = -1; - int lastEncodingAllowedBreak = -1; + int lastEncodingAllowedBreak = 0; for (int j=0; j < lengthSegment;) { unsigned char ch = static_cast<unsigned char>(text[j]); if (j > 0) { |
