fix field offset calculation mismatch between type-generator.cpp and machine.cpp

This commit is contained in:
Joel Dice 2012-08-11 06:58:07 -06:00
parent 01be4b23bb
commit 242a6a0d0f

View File

@ -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);