[Scummvm-git-logs] scummvm master -> dc219275383cb59eda92e83cb1bc8d6e40120a19
dreammaster
noreply at scummvm.org
Sun Jun 30 18:50:18 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:
dc21927538 DETECTION: Fix minus on unsigned type warnings
Commit: dc219275383cb59eda92e83cb1bc8d6e40120a19
https://github.com/scummvm/scummvm/commit/dc219275383cb59eda92e83cb1bc8d6e40120a19
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-06-30T11:48:29-07:00
Commit Message:
DETECTION: Fix minus on unsigned type warnings
Changed paths:
engines/advancedDetector.h
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h
index 1aee1c81c8b..9acb3b0b22a 100644
--- a/engines/advancedDetector.h
+++ b/engines/advancedDetector.h
@@ -65,7 +65,7 @@ static inline uint32 alignSizeBuffer() {
static inline void *alignToBuffer(void *buffer) {
// Round up
uintptr tmp = (uintptr)buffer + sizeof(void *) - 1;
- return (void *)(tmp & -sizeof(void *));
+ return (void *)(tmp & -(int)sizeof(void *));
}
} // End of namespace ADDynamicDescription
More information about the Scummvm-git-logs
mailing list