}
}
-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)
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)) {
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: {