]> gitweb.factorcode.org Git - factor.git/commitdiff
classes.struct: store aligned size in struct-size word-prop
authorSlava Pestov <slava@shill.local>
Fri, 25 Sep 2009 00:54:32 +0000 (19:54 -0500)
committerSlava Pestov <slava@shill.local>
Fri, 25 Sep 2009 00:54:32 +0000 (19:54 -0500)
basis/classes/struct/struct.factor

index 22a80776e72b2ab2be7f087e68b063000651fa83..beddf07dd5ea565fc143ca74a15282517b9fead1 100755 (executable)
@@ -246,10 +246,10 @@ M: struct binary-zero?
     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 :> size
     slot-specs struct-align :> alignment
+    slot-specs offsets-quot call alignment align :> size
 
-    class  slot-specs  size alignment align  alignment  c-type-for-class :> c-type
+    class  slot-specs  size  alignment  c-type-for-class :> c-type
 
     c-type class typedef
     class slot-specs define-accessors