aboutsummaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 13:20:17 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 13:20:17 -0400
commitc778c8822f1c8acf981e26f7b860a384c94cff6f (patch)
tree550e52a4037b202de00d9f43321c996fd964c2a9 /src/types.c
parent639d5ddfca562e5b3645955551be244b5e8ca9c6 (diff)
parentee020c72d92c3807fa4afcd1e170d3df81688b97 (diff)
Merge branch 'main' into optional-list-indexing
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/types.c b/src/types.c
index a4dcc5e5..b0caca1a 100644
--- a/src/types.c
+++ b/src/types.c
@@ -8,7 +8,6 @@
#include "environment.h"
#include "stdlib/integers.h"
-#include "stdlib/print.h"
#include "stdlib/text.h"
#include "stdlib/util.h"
#include "types.h"
@@ -30,7 +29,7 @@ Text_t type_to_text(type_t *t) {
case CStringType: return Text("CString");
case TextType: return Match(t, TextType)->lang ? Text$from_str(Match(t, TextType)->lang) : Text("Text");
case BigIntType: return Text("Int");
- case IntType: return Texts("Int", String(Match(t, IntType)->bits));
+ case IntType: return Texts("Int", (int32_t)Match(t, IntType)->bits);
case NumType: return Match(t, NumType)->bits == TYPE_NBITS32 ? Text("Num32") : Text("Num");
case ListType: {
DeclareMatch(list, t, ListType);
@@ -84,7 +83,7 @@ Text_t type_to_text(type_t *t) {
}
default: {
raise(SIGABRT);
- return Texts("Unknown type: ", String(t->tag));
+ return Texts("Unknown type: ", (int32_t)t->tag);
}
}
}