aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2016-10-27 15:23:07 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2016-10-27 15:23:07 +1100
commit9efd6f07a96d93e2c30d81a912814741acaa34ce (patch)
treef42373d8db0954af42252b518ad8bb100c6f7624
parent9c55fa7dd47e3ca345ed7cbdda2845c4116e6ebe (diff)
downloadscintilla-mirror-9efd6f07a96d93e2c30d81a912814741acaa34ce.tar.gz
Fix truncation warning from Xcode.
-rw-r--r--lexers/LexYAML.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexYAML.cxx b/lexers/LexYAML.cxx
index 08c957cb7..9f28bb843 100644
--- a/lexers/LexYAML.cxx
+++ b/lexers/LexYAML.cxx
@@ -55,7 +55,7 @@ static bool KeywordAtChar(char* lineBuffer, char* startComment, const WordList &
char* endValue = startComment - 1;
while (endValue >= lineBuffer && *endValue == ' ')
endValue--;
- Sci_PositionU len = endValue - lineBuffer + 1;
+ Sci_PositionU len = static_cast<Sci_PositionU>(endValue - lineBuffer) + 1;
char s[100];
if (len > (sizeof(s) / sizeof(s[0]) - 1))
return false;