From ef23faa3e6e003282e53fc08031ec4eb9a2e2aae Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 7 Apr 2025 00:46:26 -0400 Subject: Add Byte.to() method and improved micro optimization of iterating over fixed-width integer ranges --- src/types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.c') diff --git a/src/types.c b/src/types.c index 83c3e702..efd83477 100644 --- a/src/types.c +++ b/src/types.c @@ -420,7 +420,7 @@ PUREFUNC bool can_promote(type_t *actual, type_t *needed) PUREFUNC bool is_int_type(type_t *t) { - return t->tag == IntType || t->tag == BigIntType; + return t->tag == IntType || t->tag == BigIntType || t->tag == ByteType; } PUREFUNC bool is_numeric_type(type_t *t) -- cgit v1.2.3