From 8be2905d29db5013bf8a2d9c5c7c7155af77ed49 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 Feb 2018 02:55:31 +0300 Subject: Fix compilation with enabled debug images. --- src/resources/image/image.cpp | 3 ++- src/resources/image/subimage.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/resources/image') diff --git a/src/resources/image/image.cpp b/src/resources/image/image.cpp index 55a49a68d..92cdbee43 100644 --- a/src/resources/image/image.cpp +++ b/src/resources/image/image.cpp @@ -101,7 +101,8 @@ Image::Image(SDL_Texture *restrict const image, mIsAlphaCalculated(false) { #ifdef DEBUG_IMAGES - logger->log("created image: %p", this); + logger->log("created image: %p", + static_cast(this)); #endif // DEBUG_IMAGES mBounds.x = 0; diff --git a/src/resources/image/subimage.cpp b/src/resources/image/subimage.cpp index 19302792c..1f747ed43 100644 --- a/src/resources/image/subimage.cpp +++ b/src/resources/image/subimage.cpp @@ -48,7 +48,9 @@ SubImage::SubImage(Image *const parent, mAlphaChannel = mParent->SDLgetAlphaChannel(); mSource = parent->mIdPath; #ifdef DEBUG_IMAGES - logger->log("set name2 %p, %s", this, mSource.c_str()); + logger->log("set name2 %p, %s", + static_cast(this), + mSource.c_str()); #endif // DEBUG_IMAGES #ifdef DEBUG_BIND_TEXTURE mIdPath = parent->mIdPath; -- cgit v1.2.3-70-g09d2