1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 04:45:17 +03:00

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

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;
}