- Fixed VMParamFiller to use proper A register tags.

- Changed RET so that it will still work if the caller expects fewer return values.

SVN r1843 (scripting)
This commit is contained in:
Randy Heit 2009-09-16 02:53:05 +00:00
commit b7ad95446f
2 changed files with 10 additions and 6 deletions

View file

@ -533,11 +533,14 @@ begin:
{ // No return values
return 0;
}
assert(a < numret);
SetReturn(reg, f, &ret[a], B, C);
assert(ret != NULL || numret == 0);
if (a < numret)
{
SetReturn(reg, f, &ret[a], B, C);
}
if (B & REGT_FINAL)
{
return a + 1;
return MIN(numret, a + 1);
}
NEXTOP;
OP(RESULT):