[Scummvm-git-logs] scummvm master -> 739af389f09de9fc3696224bb2d76605b48bfc8e

digitall noreply at scummvm.org
Mon Aug 29 00:57:59 UTC 2022


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:
739af389f0 DIRECTOR: Fix Signed vs. Unsigned Comparison GCC Compiler Warning


Commit: 739af389f09de9fc3696224bb2d76605b48bfc8e
    https://github.com/scummvm/scummvm/commit/739af389f09de9fc3696224bb2d76605b48bfc8e
Author: D G Turner (digitall at scummvm.org)
Date: 2022-08-29T01:57:17+01:00

Commit Message:
DIRECTOR: Fix Signed vs. Unsigned Comparison GCC Compiler Warning

Changed paths:
    engines/director/graphics.cpp


diff --git a/engines/director/graphics.cpp b/engines/director/graphics.cpp
index b634fd01f2c..8647477a138 100644
--- a/engines/director/graphics.cpp
+++ b/engines/director/graphics.cpp
@@ -255,7 +255,7 @@ void inkDrawPixel(int x, int y, int src, void *data) {
 
  	switch (p->ink) {
 	case kInkTypeBackgndTrans:
-		*dst = src == p->backColor ? *dst : src;
+		*dst = (src == (int)p->backColor) ? *dst : src;
 		break;
 	case kInkTypeMatte:
 		// fall through




More information about the Scummvm-git-logs mailing list