mirror of
https://github.com/corda/corda.git
synced 2025-02-12 05:35:50 +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;
|
unsigned count = 0;
|
||||||
Stack* start = 0;
|
Stack* start = 0;
|
||||||
for (Stack* s = stack; s and (not s->pushed); s = s->next) {
|
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;
|
start = s;
|
||||||
}
|
}
|
||||||
if (start) {
|
if (start) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user