aboutsummaryrefslogtreecommitdiff
path: root/src/compile/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/compile/types.c
parent639d5ddfca562e5b3645955551be244b5e8ca9c6 (diff)
parentee020c72d92c3807fa4afcd1e170d3df81688b97 (diff)
Merge branch 'main' into optional-list-indexing
Diffstat (limited to 'src/compile/types.c')
-rw-r--r--src/compile/types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/types.c b/src/compile/types.c
index aa06e2fd..f6f276a5 100644
--- a/src/compile/types.c
+++ b/src/compile/types.c
@@ -23,10 +23,10 @@ Text_t compile_type(type_t *t) {
case ByteType: return Text("Byte_t");
case CStringType: return Text("const char*");
case BigIntType: return Text("Int_t");
- case IntType: return Texts("Int", String(Match(t, IntType)->bits), "_t");
+ case IntType: return Texts("Int", (int32_t)Match(t, IntType)->bits, "_t");
case NumType:
return Match(t, NumType)->bits == TYPE_NBITS64 ? Text("Num_t")
- : Texts("Num", String(Match(t, NumType)->bits), "_t");
+ : Texts("Num", (int32_t)Match(t, NumType)->bits, "_t");
case TextType: {
DeclareMatch(text, t, TextType);
if (!text->lang || streq(text->lang, "Text")) return Text("Text_t");