another fix
authorMatthias Braun <matze@braunis.de>
Sun, 30 Apr 2006 20:41:43 +0000 (20:41 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 30 Apr 2006 20:41:43 +0000 (20:41 +0000)
SVN-Revision: 3473

src/scripting/serialize.cpp
src/scripting/squirrel_util.cpp

index 9ed5d23..98341e2 100644 (file)
@@ -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)) {
index 1617056..b3cf9c1 100644 (file)
@@ -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<int> (val));
                 break;
             }
             case OT_FLOAT: {