From 5d9b874c26ea91ed6dc747d0d50e416dd324ff63 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Thu, 16 Sep 2021 09:40:40 -0500 Subject: [PATCH] Ensure that the java layout is set for method types --- src/coffi/ffi.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 6e5275a..a128b07 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -423,7 +423,7 @@ ([args] (method-type args ::void)) ([args ret] (MethodType/methodType - ^Class ret + ^Class (java-layout ret) ^"[Ljava.lang.Class;" (into-array Class (map java-layout args))))) (defn- function-descriptor