summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
commit5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 (patch)
treeaeafccf4632262393b23e52afc9facc5ec9f1b3f /src/resources/imagehelper.cpp
parent84f2cad3897d0dacb60cfef4e1860ffb8ec268e1 (diff)
downloadplus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.gz
plus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.bz2
plus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.xz
plus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.zip
Fix sign on some vars.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r--src/resources/imagehelper.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index ad0c98ad1..0092d132b 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -169,12 +169,15 @@ void ImageHelper::dumpSurfaceFormat(const SDL_Surface *const image)
logger->log("Alpha: %d", format->alpha);
#endif
logger->log("Loss: %02x, %02x, %02x, %02x",
- static_cast<int>(format->Rloss), static_cast<int>(format->Gloss),
- static_cast<int>(format->Bloss), static_cast<int>(format->Aloss));
+ static_cast<unsigned int>(format->Rloss),
+ static_cast<unsigned int>(format->Gloss),
+ static_cast<unsigned int>(format->Bloss),
+ static_cast<unsigned int>(format->Aloss));
logger->log("Shift: %02x, %02x, %02x, %02x",
- static_cast<int>(format->Rshift), static_cast<int>(format->Gshift),
- static_cast<int>(format->Bshift),
- static_cast<int>(format->Ashift));
+ static_cast<unsigned int>(format->Rshift),
+ static_cast<unsigned int>(format->Gshift),
+ static_cast<unsigned int>(format->Bshift),
+ static_cast<unsigned int>(format->Ashift));
logger->log("Mask: %08x, %08x, %08x, %08x", format->Rmask,
format->Gmask, format->Bmask, format->Amask);
}