aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-18 01:03:23 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-18 01:03:23 -0500
commit733ebfd234906aac08a66e6c2ebe7ed2a0c4d375 (patch)
tree0fcf39f0891ef8120fa929af6a059ba3578f4047 /compile.c
parent5ebbfc205ae1f78f9f13d1453523212c9c9e646b (diff)
Fix up some Str stuff
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 0496f492..665c6469 100644
--- a/compile.c
+++ b/compile.c
@@ -44,7 +44,7 @@ CORD expr_as_string(env_t *env, CORD expr, type_t *t, CORD color)
case BoolType: return CORD_asprintf("Bool__as_str(%r, %r, NULL)", expr, color);
case IntType: return CORD_asprintf("Int%ld__as_str(%r, %r, NULL)", Match(t, IntType)->bits, expr, color);
case NumType: return CORD_asprintf("Num%ld__as_str(%r, %r, NULL)", Match(t, NumType)->bits, expr, color);
- case StringType: return CORD_asprintf("Str__as_str(%r, %r, &Str_type.type)", expr, color);
+ case StringType: return CORD_asprintf("Str__as_str(%r, %r, &Str.type)", expr, color);
case ArrayType: return CORD_asprintf("Array__as_str(%r, %r, %r)", expr, color, compile_type_info(env, t));
case TableType: return CORD_asprintf("Table_as_str(%r, %r, %r)", expr, color, compile_type_info(env, t));
case FunctionType: return CORD_asprintf("Func__as_str(%r, %r, %r)", expr, color, compile_type_info(env, t));