mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
duration fix (#1950)
* duration fix * Update release notes, explicitly send -1. --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
<*
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user