]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fix an off-by-one bug when copying varargs
authorWolfgang Bumiller <blub@speed.at>
Wed, 16 Jan 2013 20:04:08 +0000 (21:04 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 16 Jan 2013 20:04:08 +0000 (21:04 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 46e74894a14e8e1d7c613343b73a88e0d912e0b8..897c60269835f7969ded3cfabb979c07b23ca078 100644 (file)
--- 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);