summaryrefslogtreecommitdiffstats
path: root/src/Color.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Color.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Color.cpp b/src/Color.cpp
index f2180e2d9..bcaa3eff3 100644
--- a/src/Color.cpp
+++ b/src/Color.cpp
@@ -54,7 +54,7 @@ void cColor::SetBlue(unsigned char a_Blue)
unsigned char cColor::GetRed() const
{
- return (m_Color & COLOR_RED_BITS) >> COLOR_RED_OFFSET;
+ return static_cast<unsigned char>((m_Color & COLOR_RED_BITS) >> COLOR_RED_OFFSET);
}