From 5254e223656d8a4f9c4c7f681f96f9a92b0b5799 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sun, 30 Apr 2006 20:41:43 +0000 Subject: [PATCH] another fix SVN-Revision: 3473 --- src/scripting/serialize.cpp | 4 ++-- src/scripting/squirrel_util.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: { -- 2.11.0