aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-25 22:15:20 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-25 22:15:20 +1000
commit74c84662195aafc20b7e65d59d5c2881a9c2687e (patch)
tree7049fa18b39304fbfd2bed6975febc445d043923 /src/Document.cxx
parentf41794f988b72fd4d7ac905f939ff868ba94e991 (diff)
downloadscintilla-mirror-74c84662195aafc20b7e65d59d5c2881a9c2687e.tar.gz
Make Coverity happy. Ensure return value is seen to never be negative although
it never really could be.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
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) {