Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rem
SRB2
Commits
80af2a27
Commit
80af2a27
authored
1 year ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
Fix -Warray-bounds warning in lua_hooklib.c
parent
3ae6a99a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_hooklib.c
+3
-3
3 additions, 3 deletions
src/lua_hooklib.c
with
3 additions
and
3 deletions
src/lua_hooklib.c
+
3
−
3
View file @
80af2a27
...
...
@@ -76,12 +76,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
)
{
...
...
@@ -200,7 +200,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
(
!
lua_lumploading
)
return
luaL_error
(
L
,
"This function cannot be called from within a hook or coroutine!"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment