[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
@@ -109,7 +109,7 @@
(new-dynamic-structure
allocation
type-to-make
(the-as int (+ (-> type-to-make size) (the-as uint (* 48 v1-1))))
(the-as int (+ (-> type-to-make size) (* 48 v1-1)))
)
)
)
@@ -55,13 +55,7 @@
(object-new
allocation
type-to-make
(the-as
int
(+
(+ (-> type-to-make size) (the-as uint (* (+ data-count -1) 16)))
(the-as uint data-size)
)
)
(the-as int (+ (-> type-to-make size) (* (+ data-count -1) 16) data-size))
)
)
)
@@ -84,10 +78,7 @@
(defmethod asize-of res-lump ((obj res-lump))
(the-as
int
(+
(+ (-> obj type psize) (the-as uint (* (-> obj allocated-length) 16)))
(the-as uint (-> obj data-size))
)
(+ (-> obj type psize) (* (-> obj allocated-length) 16) (-> obj data-size))
)
)