From 84fa7a5a87c476c6eec085cae5d4ea10c1454507 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 9 Dec 2005 22:53:51 +0000 Subject: Casts result of SafeGetCharAt so that it is treated as unsigned. --- src/StyleContext.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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(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(styler.SafeGetCharAt(currentPos+n)))) return false; s++; } -- cgit v1.2.3