mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
fix popIndex calculation in CallEvent ctor
This commit is contained in:
parent
8b6319fbc8
commit
11408dc2cd
@ -2189,13 +2189,13 @@ class CallEvent: public Event {
|
||||
++ frameIndex;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%d %d\n",
|
||||
stackBefore ? stackBefore->index + 1 - stackArgumentFootprint : 0,
|
||||
c->localFootprint);
|
||||
popIndex
|
||||
= c->alignedFrameSize
|
||||
+ c->parameterFootprint
|
||||
- (stackBefore ? stackBefore->index + 1 - stackArgumentFootprint : 0)
|
||||
- c->localFootprint;
|
||||
|
||||
popIndex = ::frameIndex
|
||||
(c, (stackBefore ? stackBefore->index - stackArgumentFootprint : 0)
|
||||
+ c->localFootprint);
|
||||
assert(c, static_cast<int>(popIndex) >= 0);
|
||||
|
||||
saveLocals(c, this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user