classes.struct: compute slot offsets before alignment to fix struct size problem on PPC

Slava Pestov 2009-11-19 19:34:46 -06:00
parent 8dc1341f8f
commit d6c1fed06c
1 changed files with 2 additions and 1 deletions

View File

@ -281,8 +281,9 @@ M: struct binary-zero? >c-ptr [ 0 = ] all? ;
slots empty? [ struct-must-have-slots ] when
class redefine-struct-tuple-class
slots make-slots dup check-struct-slots :> slot-specs
slot-specs offsets-quot call :> unaligned-size
slot-specs struct-alignment :> alignment
slot-specs offsets-quot call alignment align :> size
unaligned-size alignment align :> size
class slot-specs size alignment c-type-for-class :> c-type