mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
align fields naturally in parseFieldTable
This commit is contained in:
parent
f84b865f03
commit
29b5e81aed
@ -758,8 +758,8 @@ parseFieldTable(Thread* t, Stream& s, object class_, object pool)
|
||||
if (flags & ACC_STATIC) {
|
||||
fieldOffset(t, field) = staticOffset++;
|
||||
} else {
|
||||
unsigned excess = memberOffset % BytesPerWord;
|
||||
if (excess and fieldCode(t, field) == ObjectField) {
|
||||
unsigned excess = memberOffset % fieldSize(t, field);
|
||||
if (excess) {
|
||||
memberOffset += BytesPerWord - excess;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user