Fix VarPtr() on function arguments.

[GB.JIT]
* BUG: Fix VarPtr() on function arguments.
This commit is contained in:
gambas 2020-01-20 03:03:02 +01:00
parent 191db990d8
commit 6a0e3dbc4d

View file

@ -2268,7 +2268,7 @@ static void push_subr_varptr(ushort code)
{
if ((op & 0xFF00) == C_PUSH_PARAM)
{
index = _func->n_param + (op & 0xFF);
index = _func->n_param + (signed char)(op & 0xFF);
type = _func->param[index].type;
sprintf(var, "p%d", index);
}