mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix code ordering bug in MyCompiler::peek
This commit is contained in:
parent
377e2864d9
commit
9dafe37ff3
@ -2209,8 +2209,8 @@ class MyCompiler: public Compiler {
|
||||
virtual Operand* peek(unsigned size UNUSED, unsigned index) {
|
||||
Stack* s = c.state->stack;
|
||||
for (unsigned i = index; i > 0;) {
|
||||
s = s->next;
|
||||
i -= s->size;
|
||||
s = s->next;
|
||||
}
|
||||
assert(&c, s->size == ceiling(size, BytesPerWord));
|
||||
return s->value;
|
||||
|
Loading…
Reference in New Issue
Block a user