diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h index a6b194604..9be36d1bb 100644 --- a/src/cat/LuaScriptInterface.h +++ b/src/cat/LuaScriptInterface.h @@ -46,7 +46,7 @@ class Tool; class TPTScriptInterface; class LuaScriptInterface; -typedef void (*NativeUpdateFunc)(int, int, int); +typedef void (TPT_VM_CALLABLE *NativeUpdateFunc)(int, int, int); class LuaScriptInterface: public CommandInterface { int luacon_mousex, luacon_mousey, luacon_mousebutton, luacon_brushx, luacon_brushy; diff --git a/src/pim/Generator.cpp b/src/pim/Generator.cpp index f2f013f50..0e38e53df 100644 --- a/src/pim/Generator.cpp +++ b/src/pim/Generator.cpp @@ -305,7 +305,7 @@ namespace pim std::stringstream label; label << prefix; label << "_"; - label << labelCounter; + label << labelCounter++; label << "_"; return label.str(); } diff --git a/src/pim/X86Native.cpp b/src/pim/X86Native.cpp index 38961bf53..41646f0b8 100644 --- a/src/pim/X86Native.cpp +++ b/src/pim/X86Native.cpp @@ -12,7 +12,6 @@ namespace pim for(int i = 0; i < 8; i++) { emit("90"); } //nop, helps find the code in memory with a debugger - //emit("BE"); //mov esi, machineStack //emitConstantP((intptr_t)machineStack);