From 29b5e81aedb666e062303bd8609719ac16c6b33d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 16 Oct 2007 19:20:36 -0600 Subject: [PATCH] align fields naturally in parseFieldTable --- src/machine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine.cpp b/src/machine.cpp index a8be17bd3a..72a7604c8e 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -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; }