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/functiontype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib/functiontype.c') diff --git a/src/stdlib/functiontype.c b/src/stdlib/functiontype.c index 3270e0ca..6fc0d6bf 100644 --- a/src/stdlib/functiontype.c +++ b/src/stdlib/functiontype.c @@ -19,5 +19,5 @@ Text_t Func$as_text(const void *fn, bool colorize, const TypeInfo_t *type) { public PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t *info) { (void)info; - return *(void **)obj == NULL; + return ((Closure_t *)obj)->fn == NULL; } -- cgit v1.2.3