From b1311429be06341bd0668ac4bbc34af73af34319 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Thu, 16 Sep 2021 15:07:31 -0500 Subject: [PATCH] Deserialize void --- src/coffi/ffi.clj | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 4682e30..53fae36 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -399,10 +399,12 @@ primitive representation. For types which do not, this deserializes out of a segment." [obj type] - ((if (primitive-type type) - deserialize* - deserialize-from) - obj type)) + (when-not (identical? ::void type) + ((if (primitive-type type) + deserialize* + deserialize-from) + obj type))) + (defn load-system-library "Loads the library named `libname` from the system's load path."