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

digitall noreply at scummvm.org
Tue Dec 31 15:04:26 UTC 2024


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:
f931d90f28 SCUMM: Fix Missing Parantheses GCC Compiler Warning


Commit: f931d90f2810b4efeaf56a5feabc59eb1093613a
    https://github.com/scummvm/scummvm/commit/f931d90f2810b4efeaf56a5feabc59eb1093613a
Author: D G Turner (digitall at scummvm.org)
Date: 2024-12-31T15:04:09Z

Commit Message:
SCUMM: Fix Missing Parantheses GCC Compiler Warning

Changed paths:
    engines/scumm/soundse.cpp


diff --git a/engines/scumm/soundse.cpp b/engines/scumm/soundse.cpp
index db33718da03..02d22913f3f 100644
--- a/engines/scumm/soundse.cpp
+++ b/engines/scumm/soundse.cpp
@@ -376,7 +376,7 @@ static int32 calculate4CharStringHash(const char *str) {
 
 		if ((current >= 'A' && current <= 'Z') || (current >= 'a' && current <= 'z')) {
 			// Take the lower nibble of the char and incorporate it into the hash...
-			hash = (16 * hash) | current & 0xF;
+			hash = (16 * hash) | (current & 0xF);
 			++charCount;
 		}
 	}




More information about the Scummvm-git-logs mailing list