From 398d2cab6988e20c59e7037ff7ef551540339abb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 5 Oct 2025 17:52:33 -0400 Subject: Fix a bunch of issues with optional types --- src/stdlib/structs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/stdlib/structs.c') diff --git a/src/stdlib/structs.c b/src/stdlib/structs.c index b08d7967..885b903c 100644 --- a/src/stdlib/structs.c +++ b/src/stdlib/structs.c @@ -160,9 +160,8 @@ PUREFUNC public Text_t Struct$as_text(const void *obj, bool colorize, const Type return Text$concat(text, Text(")")); } -PUREFUNC public bool Struct$is_none(const void *obj, const TypeInfo_t *type) { return *(bool *)(obj + type->size); } - public + void Struct$serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type) { ptrdiff_t byte_offset = 0; ptrdiff_t bit_offset = 0; -- cgit v1.2.3