luainstance: fix build with newer GCC

Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
This commit is contained in:
Stefan Seyfried
2015-12-13 14:01:12 +01:00
committed by M. Liebmann
parent dbad3b069a
commit e85f64d733
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ void functionDeprecated(lua_State *L, const char* oldFunc, const char* newFunc)
ar.short_src, ar.currentline);
}
lua_Unsigned checkMagicMask(lua_Unsigned &col)
lua_Unsigned checkMagicMask(lua_Unsigned col)
{
if ((col & MAGIC_MASK) == MAGIC_COLOR)
col = CFrameBuffer::getInstance()->realcolor[col & 0x000000ff];

View File

@@ -85,7 +85,7 @@ bool _luaL_checkbool(lua_State *L, int numArg);
void paramBoolDeprecated(lua_State *L, const char* val);
void paramDeprecated(lua_State *L, const char* oldParam, const char* newParam);
void functionDeprecated(lua_State *L, const char* oldFunc, const char* newFunc);
lua_Unsigned checkMagicMask(lua_Unsigned &col);
lua_Unsigned checkMagicMask(lua_Unsigned col);
bool tableLookup(lua_State*, const char*, std::string&);
bool tableLookup(lua_State*, const char*, lua_Integer&);