aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 21:19:40 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 21:19:40 -0400
commitbe69dba58e981278eda2f72a421e28020b602aca (patch)
treee90334f2f5c40154053056602c00eef9447bbca5 /src
parent6cf980ea713906621d28baf847ce7dbdd0d003f9 (diff)
Fix for empty fixed-with integers
Diffstat (limited to 'src')
-rw-r--r--src/compile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compile.c b/src/compile.c
index aaf41166..4d722321 100644
--- a/src/compile.c
+++ b/src/compile.c
@@ -2487,10 +2487,10 @@ CORD compile_empty(type_t *t)
case BigIntType: return "I(0)";
case IntType: {
switch (Match(t, IntType)->bits) {
- case TYPE_IBITS8: return "Int8(0)";
- case TYPE_IBITS16: return "Int16(0)";
- case TYPE_IBITS32: return "Int32(0)";
- case TYPE_IBITS64: return "Int64(0)";
+ case TYPE_IBITS8: return "I8(0)";
+ case TYPE_IBITS16: return "I16(0)";
+ case TYPE_IBITS32: return "I32(0)";
+ case TYPE_IBITS64: return "I64(0)";
default: errx(1, "Invalid integer bit size");
}
break;