diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-07 00:46:26 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-07 00:46:26 -0400 |
| commit | ef23faa3e6e003282e53fc08031ec4eb9a2e2aae (patch) | |
| tree | 763944687f506e5dded02956ab3b45c456e16146 /src/types.c | |
| parent | 3554c56b209a1544c69e189ddab3b19b4bf80ae6 (diff) | |
Add Byte.to() method and improved micro optimization of iterating over
fixed-width integer ranges
Diffstat (limited to 'src/types.c')
| -rw-r--r-- | src/types.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
