aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/functiontype.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-05 17:52:33 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-05 17:52:33 -0400
commit398d2cab6988e20c59e7037ff7ef551540339abb (patch)
tree8c5154cfcd32d0664fd40ac8fa93f50f6434859a /src/stdlib/functiontype.c
parent9b5b6b110bb80f8530dd7ca4e0cc9eb3236d8ad7 (diff)
Fix a bunch of issues with optional types
Diffstat (limited to 'src/stdlib/functiontype.c')
-rw-r--r--src/stdlib/functiontype.c2
1 files changed, 1 insertions, 1 deletions
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;
}