From 30e549b40603850a30bb5a2f53a09395823d63ce Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Fri, 17 Sep 2021 13:59:58 -0500 Subject: [PATCH] Don't call tostring on serializing c-string --- 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 3f404d2..1891c7b 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -448,7 +448,7 @@ (defmethod serialize* ::c-string [obj _type scope] (if obj - (address-of (CLinker/toCString (str obj) ^ResourceScope scope)) + (address-of (CLinker/toCString ^String obj ^ResourceScope scope)) (MemoryAddress/NULL))) (defmethod deserialize* ::c-string