diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-04 15:24:10 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-04 15:24:10 -0500 |
| commit | 2fa26e6af3ec1599396d9260ef44b0d035b1f686 (patch) | |
| tree | f35124d2259af4183b222ef0f84a89f9286e9ea2 /types.c | |
| parent | da5bd87c135749b11c866aaf341c6c2c7c2ab9b2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
