diff options
author | Samuel Barney <samjbarney@gmail.com> | 2015-07-29 17:04:03 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2015-07-29 17:49:30 +0200 |
commit | 804805d35a87c2acc9425d1762ad26b1ba2ec9ac (patch) | |
tree | 13b603c8bbf8177da92ce87f5413fb646d204f3f /src/Color.h | |
parent | Merge pull request #2376 from mjhanninen/fix-freebsd-build (diff) | |
download | cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.tar cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.tar.gz cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.tar.bz2 cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.tar.lz cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.tar.xz cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.tar.zst cuberite-804805d35a87c2acc9425d1762ad26b1ba2ec9ac.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Color.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Color.h b/src/Color.h index a90e8372b..69e6a3f60 100644 --- a/src/Color.h +++ b/src/Color.h @@ -22,7 +22,7 @@ public: COLOR_LIMIT = 256, COLOR_NONE = 0xFFFFFFFF, }; - cColor() { m_Color = COLOR_NONE;} + cColor() { m_Color = static_cast<unsigned int>(COLOR_NONE);} cColor(unsigned char a_Red, unsigned char a_Green, unsigned char a_Blue) { SetColor(a_Red, a_Green, a_Blue); } /// Returns whether the color is a valid color @@ -50,7 +50,7 @@ public: unsigned char GetBlue() const; /// Resets the color - void Clear() { m_Color = COLOR_NONE; } + void Clear() { m_Color = static_cast<unsigned int>(COLOR_NONE); } // tolua_end unsigned int m_Color; |