From 8da29e1b89b60d34a0ff2b8898fc2149e608ea0c Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sun, 15 Sep 2019 23:00:36 +0100 Subject: WINTERMUTE: Fix MSVC Warning This is due to the _lastLine variable being unsigned, but having -1 assigned to it as a default / invalid value. This could probably be assigned 0 with no issues, but since this is exposed, this warning is fixed instead by assigning the unsigned equivalent of -1 so no dependent code will see a change. --- engines/wintermute/debugger/debugger_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/wintermute/debugger/debugger_controller.cpp b/engines/wintermute/debugger/debugger_controller.cpp index 8d1968d020..3d13ab3591 100644 --- a/engines/wintermute/debugger/debugger_controller.cpp +++ b/engines/wintermute/debugger/debugger_controller.cpp @@ -188,7 +188,7 @@ Error DebuggerController::stepFinish() { void DebuggerController::clear() { _lastScript = nullptr; - _lastLine = -1; + _lastLine = 0xFFFFFFFF; // Invalid } Common::String DebuggerController::readValue(const Common::String &name, Error *error) { -- cgit v1.2.3