mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- i<n> suffixes were not caught when n < 8, causing an assert.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user