From c73e96ff916209d74e2be9bd7d8de3758685ce4d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 2 Apr 2024 13:08:06 -0400 Subject: Add comparison operator <> and array method to sort by a custom comparison function --- types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'types.c') diff --git a/types.c b/types.c index 4bc7e85b..cd63e574 100644 --- a/types.c +++ b/types.c @@ -48,7 +48,7 @@ CORD type_to_cord(type_t *t) { case PointerType: { auto ptr = Match(t, PointerType); CORD sigil = ptr->is_stack ? "&" : (ptr->is_optional ? "?" : "@"); - if (ptr->is_readonly) sigil = CORD_cat(sigil, "(readonly)"); + if (ptr->is_readonly) sigil = CORD_cat(sigil, "%"); return CORD_cat(sigil, type_to_cord(ptr->pointed)); } case EnumType: { -- cgit v1.2.3