mirror of
https://github.com/corda/corda.git
synced 2025-02-11 21:26:23 +00:00
fix handling of values which appear more than once on the stack in trySteal
This commit is contained in:
parent
b80a3cea85
commit
633ef83fa1
@ -1008,7 +1008,7 @@ trySteal(Context* c, Register* r, Stack* stack)
|
||||
unsigned count = 0;
|
||||
Stack* start = 0;
|
||||
for (Stack* s = stack; s and (not s->pushed); s = s->next) {
|
||||
if (s->value == v) {
|
||||
if (start == 0 and s->value == v) {
|
||||
start = s;
|
||||
}
|
||||
if (start) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user