- 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:
parent
fefc306a54
commit
b7ad95446f
2 changed files with 10 additions and 6 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue