From d806ef27691bff4c2bf0647709b7060559fbc045 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 20 Mar 2009 00:11:22 +0000 Subject: Fix compilation on mingw64. svn-id: r39554 --- graphics/scaler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp index 60070e7602..e17652efae 100644 --- a/graphics/scaler.cpp +++ b/graphics/scaler.cpp @@ -194,7 +194,7 @@ void Normal2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit int width, int height) { uint8 *r; - assert(((long)dstPtr & 3) == 0); + assert(IS_ALIGNED(dstPtr, 4)); assert(sizeof(OverlayColor) == 2); while (height--) { r = dstPtr; @@ -220,7 +220,7 @@ void Normal3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit const uint32 dstPitch2 = dstPitch * 2; const uint32 dstPitch3 = dstPitch * 3; - assert(((long)dstPtr & 1) == 0); + assert(IS_ALIGNED(dstPtr, 2)); while (height--) { r = dstPtr; for (int i = 0; i < width; ++i, r += 6) { -- cgit v1.2.3