[Scummvm-git-logs] scummvm master -> 1200485211e4c51ff33d7183843f75a1895c75ab

sluicebox 22204938+sluicebox at users.noreply.github.com
Thu Feb 4 07:39:26 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:
1200485211 SCI: Fix kGetTime debug messages


Commit: 1200485211e4c51ff33d7183843f75a1895c75ab
    https://github.com/scummvm/scummvm/commit/1200485211e4c51ff33d7183843f75a1895c75ab
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2021-02-03T23:37:23-08:00

Commit Message:
SCI: Fix kGetTime debug messages

This change doesn't affect kGetTime results.

kGetTime has been logging its return value in debug messages as a 32-bit
value before converting down to the actual 16-bit value that's returned.

Changed paths:
    engines/sci/engine/kmisc.cpp


diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index 6868041b1b..f4d3c0c283 100644
--- a/engines/sci/engine/kmisc.cpp
+++ b/engines/sci/engine/kmisc.cpp
@@ -243,7 +243,7 @@ enum {
 
 reg_t kGetTime(EngineState *s, int argc, reg_t *argv) {
 	TimeDate loc_time;
-	int retval = 0; // Avoid spurious warning
+	uint16 retval = 0; // Avoid spurious warning
 
 	g_system->getTimeAndDate(loc_time);
 




More information about the Scummvm-git-logs mailing list