diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-31 17:01:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-31 17:01:38 +0300 |
commit | 5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 (patch) | |
tree | aeafccf4632262393b23e52afc9facc5ec9f1b3f /src/resources/imagehelper.cpp | |
parent | 84f2cad3897d0dacb60cfef4e1860ffb8ec268e1 (diff) | |
download | manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.gz manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.bz2 manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.xz manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.zip |
Fix sign on some vars.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r-- | src/resources/imagehelper.cpp | 13 |
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); } |