[Scummvm-git-logs] scummvm master -> 2547e0c16e10f3335859e0ec7b84b7b9df65c0ea

digitall 547637+digitall at users.noreply.github.com
Sun Mar 14 18:44:33 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:
2547e0c16e GLK: LEVEL9: Fix Missing Parentheses GCC Compiler Warnings


Commit: 2547e0c16e10f3335859e0ec7b84b7b9df65c0ea
    https://github.com/scummvm/scummvm/commit/2547e0c16e10f3335859e0ec7b84b7b9df65c0ea
Author: D G Turner (digitall at scummvm.org)
Date: 2021-03-14T18:43:56Z

Commit Message:
GLK: LEVEL9: Fix Missing Parentheses GCC Compiler Warnings

Changed paths:
    engines/glk/level9/level9_main.cpp


diff --git a/engines/glk/level9/level9_main.cpp b/engines/glk/level9/level9_main.cpp
index d9346e7664..fc9549f610 100644
--- a/engines/glk/level9/level9_main.cpp
+++ b/engines/glk/level9/level9_main.cpp
@@ -3071,9 +3071,8 @@ void GameState::synchronize(Common::Serializer &s) {
 		s.syncAsUint16LE(stack[i]);
 }
 
-#define CHECKSUMW(V) checksum += (V & 0xff) + (V >> 8) & 0xff
-#define CHECKSUML(V) checksum += (V & 0xff) + (V >> 8) & 0xff \
-	+ (V >> 16) & 0xff + (V >> 24) & 0xff
+#define CHECKSUMW(V) checksum += (V & 0xff) + ((V >> 8) & 0xff)
+#define CHECKSUML(V) checksum += (V & 0xff) + ((V >> 8) & 0xff) + ((V >> 16) & 0xff) + ((V >> 24) & 0xff)
 
 void GameState::calculateChecksum() {
 	checksum = 0;




More information about the Scummvm-git-logs mailing list