Fix bug in deserialization of pointer types

This commit is contained in:
Joshua Suskalo 2021-09-17 10:50:17 -05:00
parent f3ee51ea11
commit c5aa1f26b7

View file

@ -395,10 +395,8 @@
(defmethod deserialize-from ::pointer
[segment type]
(if (sequential? type)
(deserialize (slice-global (MemoryAccess/getAddress segment) (size-of (second type)))
(second type))
(MemoryAccess/getAddress segment)))
(cond-> (MemoryAccess/getAddress segment)
(sequential? type) (deserialize* type)))
(defmulti deserialize*
"Deserializes a primitive object into a Clojure data structure.