Don't call tostring on serializing c-string

This commit is contained in:
Joshua Suskalo 2021-09-17 13:59:58 -05:00
parent eeba1711d6
commit 30e549b406

View file

@ -448,7 +448,7 @@
(defmethod serialize* ::c-string (defmethod serialize* ::c-string
[obj _type scope] [obj _type scope]
(if obj (if obj
(address-of (CLinker/toCString (str obj) ^ResourceScope scope)) (address-of (CLinker/toCString ^String obj ^ResourceScope scope))
(MemoryAddress/NULL))) (MemoryAddress/NULL)))
(defmethod deserialize* ::c-string (defmethod deserialize* ::c-string