mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
fix an off-by-one bug when copying varargs
This commit is contained in:
parent
00a9d2a9e3
commit
81f3a6d186
1 changed files with 1 additions and 1 deletions
2
ir.c
2
ir.c
|
@ -3200,7 +3200,7 @@ static bool gen_function_varargs_copy(ir_function *self)
|
|||
code_push_statement(&stmt, self->context.line);
|
||||
continue;
|
||||
}
|
||||
ext = i - 8;
|
||||
ext = i - 9;
|
||||
if (ext >= vec_size(ir->extparams))
|
||||
ir_gen_extparam(ir);
|
||||
|
||||
|
|
Loading…
Reference in a new issue