lisp: INT -> SMI

when we implement big integer support, we should use INT there
instead.  SMI signals intent much better.
This commit is contained in:
2026-03-05 19:41:16 +00:00
parent a50ca72b24
commit b93042fd27
6 changed files with 22 additions and 22 deletions

View File

@@ -23,7 +23,7 @@ void smi_test(void)
{
i64 in = ints[i];
lisp_t *lisp = make_int(in);
i64 out = as_int(lisp);
i64 out = as_smi(lisp);
TEST(in == out, "%ld == %ld", in, out);
}
@@ -47,7 +47,7 @@ void smi_oob_test(void)
{
i64 in = ints[i];
lisp_t *lisp = make_int(in);
i64 out = as_int(lisp);
i64 out = as_smi(lisp);
TEST(in != out, "%ld != %ld", in, out);
}