From df558da7e1979a59b5207c323962aa59b61258e4 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 20 Aug 2025 21:50:58 +0100 Subject: Use sv_t instead of raw char* We're storing them as sv_t's anyway, we're fucked with regards to indirection. Thus, let's be nice to ourselves, and deal with the structures. We get the size of the structure for free anyway! --- constructor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'constructor.c') diff --git a/constructor.c b/constructor.c index fd1e0d0..a2669ee 100644 --- a/constructor.c +++ b/constructor.c @@ -43,6 +43,6 @@ lisp_t *make_vec(sys_t *sys, u64 capacity) lisp_t *intern(sys_t *sys, sv_t sv) { - char *s = sym_table_find(&sys->symtable, sv); - return tag_sym(s); + sv_t *str = sym_table_find(&sys->symtable, sv); + return tag_sym(str); } -- cgit v1.2.3-13-gbd6f