diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-06 23:14:57 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-06 23:14:57 -0400 |
| commit | 1b89eea1cf6126a2f80f51dcc83782ce70265f7e (patch) | |
| tree | ac53bc3b6960c524ff7d1e8649dc6fa14f27694f /src/stdlib/optionals.c | |
| parent | a63a7383a3aa25f1562464c94c356b7aacbbb0a6 (diff) | |
Bugfix for serialization of sets and tables with fallbacks
Diffstat (limited to 'src/stdlib/optionals.c')
| -rw-r--r-- | src/stdlib/optionals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/optionals.c b/src/stdlib/optionals.c index f33b471d..7df9a827 100644 --- a/src/stdlib/optionals.c +++ b/src/stdlib/optionals.c @@ -56,7 +56,7 @@ public Text_t Optional$as_text(const void *obj, bool colorize, const TypeInfo_t public void Optional$serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type) { bool has_value = !is_none(obj, type->OptionalInfo.type); - fputc((int)has_value, out); + assert(fputc((int)has_value, out) != EOF); if (has_value) _serialize(obj, out, pointers, type->OptionalInfo.type); } |
