[Scummvm-git-logs] scummvm master -> 5ac3ccc6013259f07f782e141fcd245e19bfb435

digitall noreply at scummvm.org
Tue May 24 22:17:23 UTC 2022


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:
5ac3ccc601 GRIFFON: Fix Various Signed vs. Unsigned GCC Compiler Warnings


Commit: 5ac3ccc6013259f07f782e141fcd245e19bfb435
    https://github.com/scummvm/scummvm/commit/5ac3ccc6013259f07f782e141fcd245e19bfb435
Author: D G Turner (digitall at scummvm.org)
Date: 2022-05-24T23:14:50+01:00

Commit Message:
GRIFFON: Fix Various Signed vs. Unsigned GCC Compiler Warnings

These were introduced by changing the type of the various timer
variables from int to uint as part of the fix for timer drift during
pause. However, while these values do appear to be always positive,
this change does not appear to be required for the fix and results in
a large number of compiler warnings.

Changed paths:
    engines/griffon/griffon.h


diff --git a/engines/griffon/griffon.h b/engines/griffon/griffon.h
index 01f9bcc25da..ab2fc87e104 100644
--- a/engines/griffon/griffon.h
+++ b/engines/griffon/griffon.h
@@ -478,7 +478,7 @@ private:
 	int _scriptFlag[100][10], _saveSlot;  // script, flag
 
 	// timer related - move to local later
-	uint _ticks, _ticksPassed, _nextTicks, _ticksAtPauseStart;
+	int _ticks, _ticksPassed, _nextTicks, _ticksAtPauseStart;
 	float _fp, _fps, _fpsr; // CHECKME: _fp and _fps seems to be integers
 	int _secsInGame, _secStart;
 




More information about the Scummvm-git-logs mailing list