summaryrefslogtreecommitdiff
path: root/src/resources/dye/dye.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-07 04:35:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-07 18:50:36 +0300
commit514878dd29b52fcbdc3ec63833d528070d502880 (patch)
tree8d4abe6e8a5146630f9d66908f8ccdf860f1b8d2 /src/resources/dye/dye.cpp
parent48ea9be889ecc77ae0ee7e952f1970771a92e5c9 (diff)
downloadmanaverse-514878dd29b52fcbdc3ec63833d528070d502880.tar.gz
manaverse-514878dd29b52fcbdc3ec63833d528070d502880.tar.bz2
manaverse-514878dd29b52fcbdc3ec63833d528070d502880.tar.xz
manaverse-514878dd29b52fcbdc3ec63833d528070d502880.zip
Fix code style.
Diffstat (limited to 'src/resources/dye/dye.cpp')
-rw-r--r--src/resources/dye/dye.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/dye/dye.cpp b/src/resources/dye/dye.cpp
index df4d165cc..d9c766af3 100644
--- a/src/resources/dye/dye.cpp
+++ b/src/resources/dye/dye.cpp
@@ -232,10 +232,10 @@ void Dye::normalOGLDye(uint32_t *restrict pixels,
{
const uint32_t p = *pixels;
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- const int alpha = p & 255;
+ const uint32_t alpha = p & 255U;
#else // SDL_BYTEORDER == SDL_BIG_ENDIAN
- const int alpha = p & 0xff000000;
+ const uint32_t alpha = p & 0xff000000U;
#endif // SDL_BYTEORDER == SDL_BIG_ENDIAN
if (alpha == 0)