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 | 0549c6e55e8a0405ec94eaad7f15718b7269975d (patch) | |
| tree | 925e39186159a6675d926b9b4c973ad66e27fc30 /src/Document.cxx | |
| parent | ba93050186b8c23adea52a70c84564059ceab043 (diff) | |
| download | scintilla-mirror-0549c6e55e8a0405ec94eaad7f15718b7269975d.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.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) { | 
