aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/scriptables/SXString.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-09 02:50:15 +0200
committerEinar Johan Trøan Sømåen2012-07-09 02:50:15 +0200
commit5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c (patch)
treeba1c7248ce50a7ce6c9b00f566d3df21f713d712 /engines/wintermute/Base/scriptables/SXString.cpp
parent0273e495e1495d6abbcac4dde4cfa7e6ca2c29d7 (diff)
downloadscummvm-rg350-5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c.tar.gz
scummvm-rg350-5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c.tar.bz2
scummvm-rg350-5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c.zip
WINTERMUTE: Silence most warnings
Diffstat (limited to 'engines/wintermute/Base/scriptables/SXString.cpp')
-rw-r--r--engines/wintermute/Base/scriptables/SXString.cpp4
1 files changed, 2 insertions, 2 deletions
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) {