From 7355b2f7fe6f5dda2aee8feca025350146ccd0f5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Feb 2024 18:38:29 -0500 Subject: Change things up to use type params for all array and table methods --- builtins/types.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builtins/types.c') 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; } -- cgit v1.2.3