[Scummvm-git-logs] scummvm master -> 858d9cd95a7613af82f130337a772ae721117e92

digitall 547637+digitall at users.noreply.github.com
Wed Sep 15 17:31:30 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:
858d9cd95a PRIVATE: Fix GCC Compiler Warning


Commit: 858d9cd95a7613af82f130337a772ae721117e92
    https://github.com/scummvm/scummvm/commit/858d9cd95a7613af82f130337a772ae721117e92
Author: D G Turner (digitall at scummvm.org)
Date: 2021-09-15T18:30:55+01:00

Commit Message:
PRIVATE: Fix GCC Compiler Warning

Changed paths:
    engines/private/private.cpp


diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index 29b315b97f..e52ef9e327 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -1279,7 +1279,7 @@ void PrivateEngine::composeImagePalette(Graphics::Surface *surf, const byte *pal
 	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))
 				p = _colorToIndex[v];




More information about the Scummvm-git-logs mailing list