Fixes #1839: Companion simulator Lua crash on Mac

This commit is contained in:
Damjan Adamic
2014-11-09 10:39:48 +01:00
parent b84799e845
commit 89a855380d
+1 -1
View File
@@ -42,7 +42,7 @@ luaR_result luaR_findglobal(const char *name, lu_byte *ptype) {
return i+1;
}
if (!strncmp(lua_rotable[i].name, "__", 2)) {
int result = luaR_findentry((void *)(size_t)(i+1), name, ptype);
luaR_result result = luaR_findentry((void *)(size_t)(i+1), name, ptype);
if (result != 0) {
return result;
}