mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
fix field offset calculation mismatch between type-generator.cpp and machine.cpp
This commit is contained in:
parent
01be4b23bb
commit
242a6a0d0f
@ -871,6 +871,13 @@ class MemberIterator {
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
while (types) {
|
while (types) {
|
||||||
|
if (member) {
|
||||||
|
assert(member->type == Object::Scalar);
|
||||||
|
offset_ = ((offset_ + size_) + (BytesPerWord - 1))
|
||||||
|
& ~(BytesPerWord - 1);
|
||||||
|
member = 0;
|
||||||
|
}
|
||||||
|
|
||||||
type = car(types);
|
type = car(types);
|
||||||
members = typeMembers(type);
|
members = typeMembers(type);
|
||||||
types = cdr(types);
|
types = cdr(types);
|
||||||
|
Loading…
Reference in New Issue
Block a user