Fix -Warray-bounds warning in lua_hooklib.c
This commit is contained in:
1 parent
73acf71f9c
commit
6b7fe5ac25
1 file changed
+3
-3
+3
-3
@@ -73,12 +73,12 @@ static boolean mobj_hook_available(int hook_type, mobjtype_t mobj_type)
|
||||
);
|
||||
}
|
||||
|
||||
static int hook_in_list
|
||||
static unsigned hook_in_list
|
||||
(
|
||||
const char * const name,
|
||||
const char * const * const list
|
||||
){
|
||||
int type;
|
||||
unsigned type;
|
||||
|
||||
for (type = 0; list[type] != NULL; ++type)
|
||||
{
|
||||
@@ -212,7 +212,7 @@ static void add_hook_ref(lua_State *L, int idx)
|
||||
static int lib_addHook(lua_State *L)
|
||||
{
|
||||
const char * name;
|
||||
int type;
|
||||
unsigned type;
|
||||
|
||||
if (hud_running)
|
||||
return luaL_error(L, "HUD rendering code should not call this function!");
|
||||
|
||||
Reference in new issue
Block a user