aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-04 15:24:10 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-04 15:24:10 -0500
commit2fa26e6af3ec1599396d9260ef44b0d035b1f686 (patch)
treef35124d2259af4183b222ef0f84a89f9286e9ea2 /types.c
parentda5bd87c135749b11c866aaf341c6c2c7c2ab9b2 (diff)
Be much more permissive about using integer literals for fixed-size ints
or nums or bytes
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index ddb3f076..8fcff830 100644
--- a/types.c
+++ b/types.c
@@ -394,7 +394,7 @@ PUREFUNC bool is_int_type(type_t *t)
PUREFUNC bool is_numeric_type(type_t *t)
{
- return t->tag == IntType || t->tag == BigIntType || t->tag == NumType;
+ return t->tag == IntType || t->tag == BigIntType || t->tag == NumType || t->tag == ByteType;
}
PUREFUNC size_t unpadded_struct_size(type_t *t)