diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-02-05 11:43:04 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-02-08 13:48:32 +0000 |
commit | b611eb81c822ed2bcd3107ba098b56952ae0685c (patch) | |
tree | adbf36666effdc4508e4dd10085212251dce882c /src/corelib/tools | |
parent | bf7458c76fcf821637368d05938823e42fbb28d5 (diff) |
Fix QDeadlineTimer::Forever case in QWaitCondition
The timeout will never be larger than numeric_limits<quint64>::max(),
especially on platforms with 32-bit longs.
Instead, test if the timeout is exactly numeric_limits<unsigned long>::max(),
which matches the ULONG_MAX value which is documented
to indicate no timeout.
Change-Id: Ib663eddb5703797c50c04fd4eae60bd64f379d1c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/tools')
0 files changed, 0 insertions, 0 deletions