mirror of
https://github.com/open-goal/jak-project
synced 2026-07-09 06:53:45 -04:00
[decompiler] Make addition nicer (#733)
* temp * update refs * update reference * fix tests
This commit is contained in:
@@ -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))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user