mirror of
https://github.com/corda/corda.git
synced 2025-01-22 04:18:31 +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() {
|
void dupped() {
|
||||||
assert(t, sp + 1 <= frameSize());
|
assert(t, sp + 1 <= frameSize());
|
||||||
assert(t, sp - 1 >= localSize());
|
assert(t, sp - 1 >= localSize());
|
||||||
set(sp++, get(sp - 1));
|
set(sp, get(sp - 1));
|
||||||
|
++ sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void duppedX1() {
|
void duppedX1() {
|
||||||
|
Loading…
Reference in New Issue
Block a user