mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
collections: fix LinkedList.to_format
For-loop in LinkedList.to_format goes brrrrrr and prints the value of
the first node an infinte number of times because it does not properly
iterate the linked list.
Fix the list iterations and add the missing string format specifier.
Bug can be reproduced with:
```
import std;
fn void main() => @pool()
{
io::printfn("%s", linkedlist::@tnew{usz}({1,2,3}));
}
```
This commit is contained in:
committed by
Christoffer Lerno
parent
9d54e9e3c4
commit
15fc435d92
@@ -56,6 +56,7 @@
|
||||
- Assert on optional-returning-function in a comma expression. #2722
|
||||
- Creating recursive debug info for functions could cause assertions.
|
||||
- bitorder::read and bitorder::write may fail because of unaligned access #2734.
|
||||
- Fix `LinkedList.to_format` to properly iterate linked list for printing.
|
||||
|
||||
### Stdlib changes
|
||||
- Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads.
|
||||
|
||||
Reference in New Issue
Block a user