duration fix (#1950)

* duration fix
* Update release notes, explicitly send -1.

---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
Ygor Pontelo
2025-02-12 18:13:07 -03:00
committed by GitHub
parent 4961d0433f
commit c9ecb09cd7
2 changed files with 2 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ struct Poll
*>
fn ulong! poll(Poll[] polls, Duration timeout)
{
return poll_ms(polls, timeout.to_ms()) @inline;
return poll_ms(polls, timeout == POLL_FOREVER ? -1 : timeout.to_ms()) @inline;
}
<*

View File

@@ -66,6 +66,7 @@
- Circumvent Aarch64 miscompilations of atomics.
- Fixes to ByteBuffer allocation/free.
- Fix issue where compiling both for asm and object file would corrupt the obj file output.
- Fix `poll` and `POLL_FOREVER`.
### Stdlib changes
- Added '%h' and '%H' for printing out binary data in hexadecimal using the formatter.