From 5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 May 2014 17:01:38 +0300 Subject: Fix sign on some vars. --- src/resources/imagehelper.cpp | 13 ++++++++----- src/resources/openglimagehelper.cpp | 2 +- src/resources/resourcemanager.cpp | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'src/resources') 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(format->Rloss), static_cast(format->Gloss), - static_cast(format->Bloss), static_cast(format->Aloss)); + static_cast(format->Rloss), + static_cast(format->Gloss), + static_cast(format->Bloss), + static_cast(format->Aloss)); logger->log("Shift: %02x, %02x, %02x, %02x", - static_cast(format->Rshift), static_cast(format->Gshift), - static_cast(format->Bshift), - static_cast(format->Ashift)); + static_cast(format->Rshift), + static_cast(format->Gshift), + static_cast(format->Bshift), + static_cast(format->Ashift)); logger->log("Mask: %08x, %08x, %08x, %08x", format->Rmask, format->Gmask, format->Bmask, format->Amask); } diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index 7421dc852..292b2fb22 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -277,7 +277,7 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage, if (error) { std::string errmsg = GraphicsManager::errorToString(error); - logger->log("Error: Image GL import failed: %s (%d)", + logger->log("Error: Image GL import failed: %s (%u)", errmsg.c_str(), error); return nullptr; } diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index ff907bb53..ea4698862 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -169,7 +169,7 @@ void ResourceManager::cleanUp(Resource *const res) if (res->mRefCount > 0) { - logger->log("ResourceManager::~ResourceManager() cleaning up %d " + logger->log("ResourceManager::~ResourceManager() cleaning up %u " "reference%s to %s", res->mRefCount, (res->mRefCount == 1) ? "" : "s", -- cgit v1.2.3-70-g09d2