[ruamoko] Include param size in size of args block

I forget it every time. It really doesn't help that params are 4 words
and words are 4 bytes, so seeing a size of 12 for 3 parameters *looks*
right.
This commit is contained in:
Bill Currie 2020-03-09 22:54:22 +09:00
parent fa0a74efdf
commit 9b0368039e

View file

@ -1260,7 +1260,7 @@ rua___obj_forward (progs_t *pr)
// forward:(SEL) sel :(@va_list) args
// args is full param list
//FIXME oh for a stack
size_t size = pr->pr_argc * sizeof (pr_type_t);
size_t size = pr->pr_argc * pr->pr_param_size * sizeof(pr_type_t);
string_t args_block = PR_AllocTempBlock (pr, size);
int argc = pr->pr_argc;