diff options
Diffstat (limited to 'lexers')
-rw-r--r-- | lexers/LexErrorList.cxx | 4 | ||||
-rw-r--r-- | lexers/LexYAML.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx index 142b7b5a5..6dc6b025e 100644 --- a/lexers/LexErrorList.cxx +++ b/lexers/LexErrorList.cxx @@ -320,12 +320,12 @@ static void ColouriseErrorListLine( int portionStyle = style; while (const char *startSeq = strstr(linePortion, CSI)) { if (startSeq > linePortion) { - styler.ColourTo(startPortion + (startSeq - linePortion), portionStyle); + styler.ColourTo(startPortion + static_cast<int>(startSeq - linePortion), portionStyle); } const char *endSeq = startSeq + 2; while (!SequenceEnd(*endSeq)) endSeq++; - const int endSeqPosition = startPortion + (endSeq - linePortion) + 1; + const int endSeqPosition = startPortion + static_cast<int>(endSeq - linePortion) + 1; switch (*endSeq) { case 0: styler.ColourTo(endPos, SCE_ERR_ESCSEQ_UNKNOWN); diff --git a/lexers/LexYAML.cxx b/lexers/LexYAML.cxx index 5cd348f46..5f94215d1 100644 --- a/lexers/LexYAML.cxx +++ b/lexers/LexYAML.cxx @@ -46,7 +46,7 @@ static unsigned int SpaceCount(char* lineBuffer) { while (*headBuffer == ' ') headBuffer++; - return headBuffer - lineBuffer; + return static_cast<unsigned int>(headBuffer - lineBuffer); } #define YAML_STATE_BITSIZE 16 |