summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-02-05 11:43:04 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-02-08 13:48:32 +0000
commitb611eb81c822ed2bcd3107ba098b56952ae0685c (patch)
treeadbf36666effdc4508e4dd10085212251dce882c /src/corelib/tools
parentbf7458c76fcf821637368d05938823e42fbb28d5 (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