mirror of
https://github.com/open-goal/jak-project
synced 2026-09-07 11:36:26 -04:00
[decompiler] Make addition nicer (#733)
* temp * update refs * update reference * fix tests
This commit is contained in:
@@ -516,10 +516,7 @@
|
||||
int
|
||||
(+
|
||||
(-> obj type size)
|
||||
(the-as
|
||||
uint
|
||||
(* (-> obj allocated-length) (the-as int (-> obj type heap-base)))
|
||||
)
|
||||
(* (-> obj allocated-length) (the-as int (-> obj type heap-base)))
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -536,14 +533,11 @@
|
||||
type-to-make
|
||||
(the-as
|
||||
int
|
||||
(+
|
||||
(-> type-to-make size)
|
||||
(the-as uint (* len (if (type-type? content-type number)
|
||||
(the-as int (-> content-type size))
|
||||
4
|
||||
)
|
||||
)
|
||||
)
|
||||
(+ (-> type-to-make size) (* len (if (type-type? content-type number)
|
||||
(the-as int (-> content-type size))
|
||||
4
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -775,13 +769,10 @@
|
||||
int
|
||||
(+
|
||||
(-> array size)
|
||||
(the-as
|
||||
uint
|
||||
(* (-> obj allocated-length) (if (type-type? (-> obj content-type) number)
|
||||
(the-as int (-> obj content-type size))
|
||||
4
|
||||
)
|
||||
)
|
||||
(* (-> obj allocated-length) (if (type-type? (-> obj content-type) number)
|
||||
(the-as int (-> obj content-type size))
|
||||
4
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user