Use coerce-addressable where possible
This commit is contained in:
parent
b8383a467b
commit
3794ab7d5f
1 changed files with 1 additions and 4 deletions
|
|
@ -506,10 +506,7 @@
|
|||
([args] (method-type args ::mem/void))
|
||||
([args ret]
|
||||
(MethodType/methodType
|
||||
^Class (let [r (mem/java-layout ret)]
|
||||
(if (= r MemoryAddress)
|
||||
Addressable
|
||||
r))
|
||||
^Class (coerce-addressable (mem/java-layout ret))
|
||||
^"[Ljava.lang.Class;" (into-array Class (map mem/java-layout args)))))
|
||||
|
||||
(defn- upcall-handle
|
||||
|
|
|
|||
Loading…
Reference in a new issue