summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qtimezoneprivate_win.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-11-07 17:17:59 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2017-11-30 20:20:10 +0000
commit35176c22896a6c633408907e8113c3f1b9a846b0 (patch)
treeb24d177879be03b07246feb7d5c9208b651883e9 /src/corelib/tools/qtimezoneprivate_win.cpp
parent68bcccac228b73c54137304718c3c92460bc1f4b (diff)
Avoid underflow on arithmetic with possibly-first transition times
A transition time may represent the beginning of time; as such, arithmetic on it might underflow, e.g. on adding a negative zone offset to compare with a given time. So move the arithmetic to the other side of the comparison in such cases. Change-Id: I1697a03ebf74679ff86059664dd2b173b9c4c367 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qtimezoneprivate_win.cpp')
0 files changed, 0 insertions, 0 deletions