aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/StyleContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index d34c89422..36b50f914 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -104,7 +104,7 @@ public:
return currentPos - styler.GetStartSegment();
}
int GetRelative(int n) {
- return styler.SafeGetCharAt(currentPos+n);
+ return static_cast<unsigned char>(styler.SafeGetCharAt(currentPos+n));
}
bool Match(char ch0) {
return ch == ch0;
@@ -134,7 +134,8 @@ public:
return false;
s++;
for (int n=2; *s; n++) {
- if (*s != tolower((styler.SafeGetCharAt(currentPos+n))))
+ if (*s !=
+ tolower(static_cast<unsigned char>(styler.SafeGetCharAt(currentPos+n))))
return false;
s++;
}