Revert "Fix issue with StaticVariable failing on pointer-carried types"

This reverts commit c1fa08586a.
This commit is contained in:
Joshua Suskalo 2025-02-27 10:43:18 -05:00
parent c1fa08586a
commit 544cf59280
No known key found for this signature in database
GPG key ID: 9B6BA586EFF1B9F0
2 changed files with 1 additions and 6 deletions

View file

@ -5,9 +5,6 @@ All notable changes to this project will be documented in this file. This change
### Added ### Added
- Support for named union members in c-layout (thanks to @jjttjj) - Support for named union members in c-layout (thanks to @jjttjj)
### Fixed
- Bug where `static-variable` with composite types with pointer primitive type carriers (e.g. c-string) would fail to deserialize
## [1.0.486] - 2024-10-04 ## [1.0.486] - 2024-10-04
### Fixed ### Fixed
- Bug where one too many indirections is used when serializing/deserializing pointer types - Bug where one too many indirections is used when serializing/deserializing pointer types

View file

@ -630,9 +630,7 @@
(deftype StaticVariable [seg type meta] (deftype StaticVariable [seg type meta]
IDeref IDeref
(deref [_] (deref [_]
(if (identical? ::mem/pointer (mem/primitive-type type)) (mem/deserialize-from seg type))
(mem/deserialize* seg type)
(mem/deserialize-from seg type)))
IObj IObj
(withMeta [_ meta-map] (withMeta [_ meta-map]