mirror of
https://github.com/corda/corda.git
synced 2025-02-02 01:08:09 +00:00
assert that jump offsets fit into 32-bit words
This commit is contained in:
parent
e3be0d197e
commit
96ddae1742
@ -1585,6 +1585,8 @@ unconditional(Context* c, unsigned jump, AddressOperand* operand)
|
||||
v = 0;
|
||||
}
|
||||
|
||||
assert(c, isInt32(v));
|
||||
|
||||
c->code.append(jump);
|
||||
c->code.append4(v);
|
||||
}
|
||||
@ -1601,6 +1603,8 @@ conditional(Context* c, unsigned condition, AddressOperand* operand)
|
||||
v = 0;
|
||||
}
|
||||
|
||||
assert(c, isInt32(v));
|
||||
|
||||
c->code.append(0x0f);
|
||||
c->code.append(condition);
|
||||
c->code.append4(v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user