classes.struct: compute slot offsets before alignment to fix struct size problem on PPC
parent
9ce3e9f84f
commit
c0588221cf
|
@ -281,8 +281,9 @@ M: struct binary-zero? >c-ptr [ 0 = ] all? ;
|
||||||
slots empty? [ struct-must-have-slots ] when
|
slots empty? [ struct-must-have-slots ] when
|
||||||
class redefine-struct-tuple-class
|
class redefine-struct-tuple-class
|
||||||
slots make-slots dup check-struct-slots :> slot-specs
|
slots make-slots dup check-struct-slots :> slot-specs
|
||||||
|
slot-specs offsets-quot call :> unaligned-size
|
||||||
slot-specs struct-alignment :> alignment
|
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
|
class slot-specs size alignment c-type-for-class :> c-type
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue