diff options
-rw-r--r-- | common/scaler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp index cbbba0ac01..7557402bfa 100644 --- a/common/scaler.cpp +++ b/common/scaler.cpp @@ -143,8 +143,8 @@ void Normal2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit void Normal3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { uint8 *r; - uint32 dstPitch2 = dstPitch * 2; - uint32 dstPitch3 = dstPitch * 3; + const uint32 dstPitch2 = dstPitch * 2; + const uint32 dstPitch3 = dstPitch * 3; while (height--) { r = dstPtr; |