- i<n> suffixes were not caught when n < 8, causing an assert.

This commit is contained in:
Christoffer Lerno
2025-12-29 21:57:06 +01:00
parent 328e6f518c
commit c6a96ad7f3
2 changed files with 2 additions and 1 deletions

View File

@@ -36,6 +36,7 @@
- Fix bug when creating bool vectors in certain cases.
- Compiler assert when passing returning CT failure immediately rethrown #2689.
- Converting between simd/non-simd bool vector would hit a compiler assert. #2691
- `i<n>` suffixes were not caught when n < 8, causing an assert.
### Stdlib changes
- Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads.

View File

@@ -1667,7 +1667,7 @@ EXIT:
Type *type_base = NULL;
if (type_bits)
{
if (type_bits < 0 || !is_power_of_two((uint64_t)type_bits) || type_bits > 128)
if (type_bits < 8 || !is_power_of_two((uint64_t)type_bits) || type_bits > 128)
{
PRINT_ERROR_AT(expr_int, "Integer type suffix should be i8, i16, i32, i64 or i128.");
return poisoned_expr;