mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Tweak some FIXMEs.
This commit is contained in:
parent
ed4018fd8d
commit
61ef901254
2 changed files with 7 additions and 7 deletions
|
@ -650,17 +650,17 @@ emit_function (function_t *f, expr_t *e)
|
|||
int
|
||||
function_parms (function_t *f, byte *parm_size)
|
||||
{
|
||||
//FIXME this is icky
|
||||
int count, i;
|
||||
ty_func_t *func = &f->sym->type->t.func;
|
||||
|
||||
if (f->sym->type->t.func.num_params >= 0)
|
||||
count = f->sym->type->t.func.num_params;
|
||||
if (func->num_params >= 0)
|
||||
count = func->num_params;
|
||||
else
|
||||
count = -f->sym->type->t.func.num_params - 1;
|
||||
count = -func->num_params - 1;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
parm_size[i] = type_size (f->sym->type->t.func.param_types[i]);
|
||||
return f->sym->type->t.func.num_params;
|
||||
parm_size[i] = type_size (func->param_types[i]);
|
||||
return func->num_params;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -252,7 +252,7 @@ static void
|
|||
free_operand (operand_t *op)
|
||||
{
|
||||
if (op->next) {
|
||||
//FIXME this should be an error, but due to the way operands are use,
|
||||
//FIXME this should be an error, but due to the way operands are used,
|
||||
//it can happen.
|
||||
debug (0, "free_operand: double free");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue