[Scummvm-git-logs] scummvm master -> f3d601e4aa8fcd0fcf6d42c00165b26addfb20ef

sev- noreply at scummvm.org
Sat Feb 18 13:16:22 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f3d601e4aa GRAPHICS: Fix negation of unsigned integer warning


Commit: f3d601e4aa8fcd0fcf6d42c00165b26addfb20ef
    https://github.com/scummvm/scummvm/commit/f3d601e4aa8fcd0fcf6d42c00165b26addfb20ef
Author: elasota (ejlasota at gmail.com)
Date: 2023-02-18T14:16:18+01:00

Commit Message:
GRAPHICS: Fix negation of unsigned integer warning

Changed paths:
    graphics/blit-scale.cpp


diff --git a/graphics/blit-scale.cpp b/graphics/blit-scale.cpp
index 8b59a6be7b8..bfaf0b926fa 100644
--- a/graphics/blit-scale.cpp
+++ b/graphics/blit-scale.cpp
@@ -45,7 +45,7 @@ void scaleNN(byte *dst, const byte *src,
 	const bool flipy = flip & FLIP_V;
 
 	const int dstIncX = (flipx ? -1 : 1);
-	const int dstIncY = (flipy ? -dstPitch : dstPitch);
+	const int dstIncY = (flipy ? -static_cast<int>(dstPitch) : static_cast<int>(dstPitch));
 
 	if (flipx) {
 		dst += (dstW - 1) * sizeof(Size);




More information about the Scummvm-git-logs mailing list