Fix bug where non-native endian values were needlessly serialized
This commit is contained in:
parent
48a2685f36
commit
f7e50630cc
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue