mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +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) {
|
if (flags & ACC_STATIC) {
|
||||||
fieldOffset(t, field) = staticOffset++;
|
fieldOffset(t, field) = staticOffset++;
|
||||||
} else {
|
} else {
|
||||||
unsigned excess = memberOffset % BytesPerWord;
|
unsigned excess = memberOffset % fieldSize(t, field);
|
||||||
if (excess and fieldCode(t, field) == ObjectField) {
|
if (excess) {
|
||||||
memberOffset += BytesPerWord - excess;
|
memberOffset += BytesPerWord - excess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user