[decompiler] fix (gpr->fpr when an integer arg is converted to float (#482)

* fix gpr fpr bug

* remove unused variable
This commit is contained in:
water111
2021-05-14 14:33:08 -04:00
committed by GitHub
parent 60c670df3a
commit b3eb05e37f
12 changed files with 95 additions and 42 deletions
@@ -46,9 +46,7 @@
;; definition for function log2
(defun log2 ((arg0 int))
(let ((arg0 (gpr->fpr arg0)))
(+ (sar (the-as int (the float arg0)) 23) -127)
)
(+ (sar (the-as int (the float arg0)) 23) -127)
)
;; definition for function seek
@@ -226,4 +224,3 @@
;; failed to figure out what this is:
(let ((v0-6 0))
)