From: Matthias Braun Date: Sun, 30 Apr 2006 20:41:43 +0000 (+0000) Subject: another fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5254e223656d8a4f9c4c7f681f96f9a92b0b5799;p=supertux.git another fix SVN-Revision: 3473 --- diff --git a/src/scripting/serialize.cpp b/src/scripting/serialize.cpp index 9ed5d23f0..98341e29c 100644 --- a/src/scripting/serialize.cpp +++ b/src/scripting/serialize.cpp @@ -74,7 +74,7 @@ void load_squirrel_table(HSQUIRRELVM vm, SQInteger table_idx, const lisp::Lisp* } } -void save_squirrel_table(HSQUIRRELVM vm, int table_idx, lisp::Writer& writer) +void save_squirrel_table(HSQUIRRELVM vm, SQInteger table_idx, lisp::Writer& writer) { // offset because of sq_pushnull if(table_idx < 0) @@ -87,7 +87,7 @@ void save_squirrel_table(HSQUIRRELVM vm, int table_idx, lisp::Writer& writer) std::cerr << "Table contains non-string key\n"; continue; } - const char* key; + const SQChar* key; sq_getstring(vm, -2, &key); switch(sq_gettype(vm, -1)) { diff --git a/src/scripting/squirrel_util.cpp b/src/scripting/squirrel_util.cpp index 161705629..b3cf9c17b 100644 --- a/src/scripting/squirrel_util.cpp +++ b/src/scripting/squirrel_util.cpp @@ -260,7 +260,7 @@ void print_squirrel_stack(HSQUIRRELVM v) case OT_INTEGER: { SQInteger val; sq_getinteger(v, i, &val); - printf("integer (%d)", val); + printf("integer (%d)", static_cast (val)); break; } case OT_FLOAT: {