From: Wolfgang Bumiller Date: Wed, 16 Jan 2013 20:04:08 +0000 (+0100) Subject: fix an off-by-one bug when copying varargs X-Git-Tag: before-library~244 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=81f3a6d1864d9fe43672ee7fa1a07773366526ba;p=xonotic%2Fgmqcc.git fix an off-by-one bug when copying varargs --- diff --git a/ir.c b/ir.c index 46e7489..897c602 100644 --- a/ir.c +++ b/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);