Make arrays deserialize to vectors

This commit is contained in:
Joshua Suskalo 2021-10-08 19:26:46 -05:00
parent d3d298d87d
commit 275c6ec6ab
2 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This change
## [Unreleased]
### Fixed
- Arrays deserialized to non-vector sequences
- Non-primitive argument types fail to link
## [0.1.205] - 2021-10-06

View file

@ -643,9 +643,9 @@
(defmethod deserialize-from ::array
[segment [_array type count]]
(map #(deserialize-from % type)
(slice-segments (slice segment 0 (* count (size-of type)))
(size-of type))))
(mapv #(deserialize-from % type)
(slice-segments (slice segment 0 (* count (size-of type)))
(size-of type))))
(s/def ::type
(s/spec