eris: fix lua_modflagbits

This commit is contained in:
2021-08-10 10:40:53 -04:00
parent 63c7357e92
commit 99d8ca718b
2 changed files with 3 additions and 3 deletions

View File

@@ -909,15 +909,15 @@ LUA_API void lua_setflagbits (lua_State *L, int idx, unsigned short bits) {
lua_unlock(L);
}
LUA_API void lua_modflagbits (lua_State *L, int idx, unsigned short set, unsigned short clear) {
LUA_API void lua_modflagbits (lua_State *L, int idx, unsigned short clear, unsigned short set) {
TValue *obj;
Table *tab;
lua_lock(L);
obj = index2addr(L, idx);
api_check(L, ttistable(obj), "table expected");
tab = hvalue(obj);
tab->flagbits |= set;
tab->flagbits &= (~clear);
tab->flagbits |= set;
lua_unlock(L);
}

View File

@@ -246,7 +246,7 @@ LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p);
LUA_API int (lua_setmetatable) (lua_State *L, int objindex);
LUA_API void (lua_setuservalue) (lua_State *L, int idx);
LUA_API void (lua_setflagbits) (lua_State *L, int idx, unsigned short bits);
LUA_API void (lua_modflagbits) (lua_State *L, int idx, unsigned short set, unsigned short clear);
LUA_API void (lua_modflagbits) (lua_State *L, int idx, unsigned short clear, unsigned short set);
LUA_API unsigned short (lua_getflagbits) (lua_State *L, int idx);
/*