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)
|
`(mem/serialize ~sym ~type-sym ~scope)
|
||||||
|
|
||||||
(and (mem/primitive? type)
|
(and (mem/primitive? type)
|
||||||
(not (#{::mem/pointer} type)))
|
(not (#{::mem/pointer} (mem/primitive-type type))))
|
||||||
(list (primitive-cast-sym type) sym)
|
(list (primitive-cast-sym (mem/primitive-type type)) sym)
|
||||||
|
|
||||||
(#{::mem/pointer} type)
|
(#{::mem/pointer} type)
|
||||||
nil
|
nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue