Fixed big bug in executeForwards where float parameters were skipped and the stack might be messed up

(thanks to BAILOPAN)
This commit is contained in:
Pavol Marko 2004-10-08 19:18:41 +00:00
parent 940b0be4b9
commit b52d77e8bf

View File

@ -494,7 +494,8 @@ cell executeForwards(int id, ...)
REAL tmp = (REAL)va_arg(argptr, double); // floats get converted to doubles REAL tmp = (REAL)va_arg(argptr, double); // floats get converted to doubles
params[i] = *(cell*)&tmp; params[i] = *(cell*)&tmp;
} }
params[i] = (cell)va_arg(argptr, cell); else
params[i] = (cell)va_arg(argptr, cell);
} }
va_end(argptr); va_end(argptr);
return g_forwards.executeForwards(id, params); return g_forwards.executeForwards(id, params);