mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Regression with invalid setup of the WASM temp allocator.
This commit is contained in:
@@ -435,7 +435,7 @@ fn Allocator create_temp_allocator_on_demand() @private
|
||||
auto_create_temp = true;
|
||||
abort("Use '@pool_init()' to enable the temp allocator on a new thread. A temp allocator is only implicitly created on the main thread.");
|
||||
}
|
||||
return create_temp_allocator(base_allocator(), temp_allocator_size());
|
||||
return create_temp_allocator(temp_base_allocator, temp_allocator_size());
|
||||
}
|
||||
<*
|
||||
@require !top_temp : "This should never be called when temp already exists"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
### Fixes
|
||||
- Trying to cast an enum to int and back caused the compiler to crash.
|
||||
- Incorrect rounding at compile time going from double to int.
|
||||
- Regression with invalid setup of the WASM temp allocator.
|
||||
|
||||
### Stdlib changes
|
||||
- Hash functions for integer vectors and arrays.
|
||||
|
||||
Reference in New Issue
Block a user