[Scummvm-git-logs] scummvm master -> 4770908e58cc760bbd2346034298bf08e86a1aa1

digitall 547637+digitall at users.noreply.github.com
Wed Sep 15 21:08:47 UTC 2021


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:
4770908e58 PRIVATE: Fix Another GCC Compiler Warning


Commit: 4770908e58cc760bbd2346034298bf08e86a1aa1
    https://github.com/scummvm/scummvm/commit/4770908e58cc760bbd2346034298bf08e86a1aa1
Author: D G Turner (digitall at scummvm.org)
Date: 2021-09-15T22:08:15+01:00

Commit Message:
PRIVATE: Fix Another GCC Compiler Warning

Changed paths:
    engines/private/private.cpp


diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index 6478a58ed3..7395419599 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -1275,7 +1275,7 @@ void PrivateEngine::composeImagePalette(const Graphics::Surface *surf, const byt
 	for (i = 0; i < surf->w; i++)
 		for (j = 0; j < surf->h; j++) {
 			c = surf->getPixel(i, j);
-			v = *((uint32*) (palette + 3*c)) & 0x00FFFFFF;
+			v = *((const uint32*) (palette + 3*c)) & 0x00FFFFFF;
 
 			if (_colorToIndex.contains(v))
 				continue;




More information about the Scummvm-git-logs mailing list