[decompiler] Make addition nicer (#733)

* temp

* update refs

* update reference

* fix tests
This commit is contained in:
water111
2021-08-01 18:24:58 -04:00
committed by GitHub
parent e70d179496
commit 12446037bd
42 changed files with 294 additions and 536 deletions
@@ -35,10 +35,7 @@
(object-new
allocation
type-to-make
(+
(+ (/ (logand -8 (+ length 7)) 8) -1)
(the-as int (-> type-to-make size))
)
(+ (/ (logand -8 (+ length 7)) 8) -1 (-> type-to-make size))
)
)
)
@@ -58,10 +55,7 @@
(defmethod asize-of bit-array ((obj bit-array))
(the-as
int
(+
(-> obj type size)
(the-as uint (/ (logand -8 (+ (-> obj allocated-length) 7)) 8))
)
(+ (-> obj type size) (/ (logand -8 (+ (-> obj allocated-length) 7)) 8))
)
)