aboutsummaryrefslogtreecommitdiff
path: root/builtins/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/types.c')
-rw-r--r--builtins/types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/types.c b/builtins/types.c
index b5527c63..f77a36f9 100644
--- a/builtins/types.c
+++ b/builtins/types.c
@@ -47,8 +47,8 @@ public struct {
public CORD Func__as_str(const void *fn, bool colorize, const TypeInfo *type)
{
(void)fn;
- CORD c = type->TypeInfoInfo.type_str;
- if (colorize)
+ CORD c = type->FunctionInfo.type_str;
+ if (fn && colorize)
CORD_sprintf(&c, "\x1b[32;1m%r\x1b[m", c);
return c;
}