From fb6dc0a8b9b5537ef708778bf013f71f98fad41f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 12 Sep 2024 03:41:44 -0400 Subject: Fix up CString:as_text() --- environment.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'environment.c') diff --git a/environment.c b/environment.c index 290ddf97..1f5493df 100644 --- a/environment.c +++ b/environment.c @@ -246,7 +246,7 @@ env_t *new_compilation_unit(CORD *libname) F2(atan2), F2(copysign), F2(fdim), F2(hypot), F2(nextafter), F2(pow), F2(remainder), )}, {"CString", Type(CStringType), "char*", "CString$info", TypedArray(ns_entry_t, - {"as_text", "CORD_from_char_star", "func(str:CString)->Text"}, + {"as_text", "CString$as_text_simple", "func(str:CString)->Text"}, )}, #undef F2 #undef F @@ -570,6 +570,7 @@ binding_t *get_namespace_binding(env_t *env, ast_t *self, const char *name) switch (cls_type->tag) { case ArrayType: return NULL; case TableType: return NULL; + case CStringType: case BoolType: case IntType: case BigIntType: case NumType: { binding_t *b = get_binding(env, CORD_to_const_char_star(type_to_cord(cls_type))); assert(b); -- cgit v1.2.3