diff options
| author | Tursiae <git@tursiae.org> | 2025-02-09 12:35:34 +1100 |
|---|---|---|
| committer | Tursiae <git@tursiae.org> | 2025-02-09 12:35:34 +1100 |
| commit | f12168b1b98bf93cbf26384187fb81fd2f8cca4f (patch) | |
| tree | 867b9c115e0bf40ba592edd06cdf14f658113c1a /src/tangara/lua/lua_thread.cpp | |
| parent | 5275b5ebcba3afed4280accaf57407a68b305021 (diff) | |
| download | tangara-fw-f12168b1b98bf93cbf26384187fb81fd2f8cca4f.tar.gz | |
Console: Stop `tasks` from hanging in `std::sort`.
`std::sort` expects a comparator that returns `a < b`. Flipping this to `a >= b`
would normally be fine to reverse the order, but floats behave weirdly with NaN.
Instead of flipping the comparator, this uses the reverse-iterators to reverse
the sort order of the tasks, and returns to an `a < b` comparator.
Diffstat (limited to 'src/tangara/lua/lua_thread.cpp')
0 files changed, 0 insertions, 0 deletions
