mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
fix undefined-order-of-operations bug in Frame::dupped
This commit is contained in:
parent
3e6c30a4b5
commit
60c4bede39
@ -812,7 +812,8 @@ class Frame {
|
||||
void dupped() {
|
||||
assert(t, sp + 1 <= frameSize());
|
||||
assert(t, sp - 1 >= localSize());
|
||||
set(sp++, get(sp - 1));
|
||||
set(sp, get(sp - 1));
|
||||
++ sp;
|
||||
}
|
||||
|
||||
void duppedX1() {
|
||||
|
Loading…
Reference in New Issue
Block a user