From 2fa26e6af3ec1599396d9260ef44b0d035b1f686 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 4 Nov 2024 15:24:10 -0500 Subject: Be much more permissive about using integer literals for fixed-size ints or nums or bytes --- types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'types.c') 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) -- cgit v1.2.3