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."