Fix bug in deserialization of pointer types
This commit is contained in:
parent
f3ee51ea11
commit
c5aa1f26b7
1 changed files with 2 additions and 4 deletions
|
|
@ -395,10 +395,8 @@
|
||||||
|
|
||||||
(defmethod deserialize-from ::pointer
|
(defmethod deserialize-from ::pointer
|
||||||
[segment type]
|
[segment type]
|
||||||
(if (sequential? type)
|
(cond-> (MemoryAccess/getAddress segment)
|
||||||
(deserialize (slice-global (MemoryAccess/getAddress segment) (size-of (second type)))
|
(sequential? type) (deserialize* type)))
|
||||||
(second type))
|
|
||||||
(MemoryAccess/getAddress segment)))
|
|
||||||
|
|
||||||
(defmulti deserialize*
|
(defmulti deserialize*
|
||||||
"Deserializes a primitive object into a Clojure data structure.
|
"Deserializes a primitive object into a Clojure data structure.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue