From 5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Mon, 9 Jul 2012 02:50:15 +0200 Subject: WINTERMUTE: Silence most warnings --- engines/wintermute/Base/scriptables/SXString.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/wintermute/Base/scriptables/SXString.cpp') diff --git a/engines/wintermute/Base/scriptables/SXString.cpp b/engines/wintermute/Base/scriptables/SXString.cpp index 60a58d3cfd..172ae32ad1 100644 --- a/engines/wintermute/Base/scriptables/SXString.cpp +++ b/engines/wintermute/Base/scriptables/SXString.cpp @@ -357,8 +357,8 @@ HRESULT CSXString::scSetProperty(const char *name, CScValue *value) { // Capacity ////////////////////////////////////////////////////////////////////////// if (strcmp(name, "Capacity") == 0) { - int newCap = value->getInt(); - if (newCap < strlen(_string) + 1) Game->LOG(0, "Warning: cannot lower string capacity"); + int32 newCap = (uint32)value->getInt(); + if (newCap < (int32)(strlen(_string) + 1)) Game->LOG(0, "Warning: cannot lower string capacity"); else if (newCap != _capacity) { char *newStr = new char[newCap]; if (newStr) { -- cgit v1.2.3