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;
|
||||
}
|
||||
|
||||
<*
|
||||
|
||||
Reference in New Issue
Block a user