Re: [PATCH 1/1] poll: use GetTickCount64() to avoid wrap-around issues
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Nov 3, 2018, 14:05 UTC
- Message-ID
- <46aa1893-095b-9f0c-4989-e63ebaa88705@kdbg.org>
- In-Reply-To
- <CAPUEspgF0GjJPtMqmZjUmsEeaJpQQBBwOV9YOg8A6YBdwbdaFA@mail.gmail.com>
Am 03.11.18 um 09:14 schrieb Carlo Arenas:
Show 5 quoted lines
> On Fri, Nov 2, 2018 at 9:44 AM Johannes Sixt <j6t@kdbg.org> wrote: >> >> + timeout = elapsed >= orig_timeout ? 0 : (int)(orig_timeout - elapsed); > > nitpick: cast to DWORD instead of int
No; timeout is of type int; after an explicit type cast we don't want to have another implicit conversion.
-- Hannes