Fix bug where non-native endian values were needlessly serialized

This commit is contained in:
Joshua Suskalo 2022-01-19 11:19:12 -06:00
parent 48a2685f36
commit f7e50630cc

View file

@ -288,8 +288,8 @@
`(mem/serialize ~sym ~type-sym ~scope)
(and (mem/primitive? type)
(not (#{::mem/pointer} type)))
(list (primitive-cast-sym type) sym)
(not (#{::mem/pointer} (mem/primitive-type type))))
(list (primitive-cast-sym (mem/primitive-type type)) sym)
(#{::mem/pointer} type)
nil