mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +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;
|
||||
} else {
|
||||
while (types) {
|
||||
if (member) {
|
||||
assert(member->type == Object::Scalar);
|
||||
offset_ = ((offset_ + size_) + (BytesPerWord - 1))
|
||||
& ~(BytesPerWord - 1);
|
||||
member = 0;
|
||||
}
|
||||
|
||||
type = car(types);
|
||||
members = typeMembers(type);
|
||||
types = cdr(types);
|
||||
|
Loading…
Reference in New Issue
Block a user