aboutsummaryrefslogtreecommitdiffhomepage
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
commit0549c6e55e8a0405ec94eaad7f15718b7269975d (patch)
tree925e39186159a6675d926b9b4c973ad66e27fc30
parentba93050186b8c23adea52a70c84564059ceab043 (diff)
downloadscintilla-mirror-0549c6e55e8a0405ec94eaad7f15718b7269975d.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.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) {