diff options
Diffstat (limited to 'src/stdlib/functiontype.c')
| -rw-r--r-- | src/stdlib/functiontype.c | 2 |
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; } |
