diff options
author | Edward Welbourne <[email protected]> | 2016-12-15 09:47:19 +0100 |
---|---|---|
committer | Edward Welbourne <[email protected]> | 2017-01-02 13:13:57 +0000 |
commit | afda26ce5d0534d85219a2fe858aa0e05037cf09 (patch) | |
tree | c48e80fbdd017a489f52fc1452f4cbf7c4d39e5b /src/widgets/util/qundostack.cpp | |
parent | 79bf4e8f1c4415d92ab335c5a72b9e4c9332fdd3 (diff) |
QDateTime test: clarify overflow-check
An overflow-check needed the datum for the "min" test to be minus the
datum for the "max" test; so explicitly make the former use -max()
instead of synthesising it as min()+1. This simplifies the
explanation of why that's needed, too. Clarify the overflow-check's
comment at the same time.
Change-Id: I41f56764fdf5e8c749bfae7a685e5fb77d37b3a8
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/widgets/util/qundostack.cpp')
0 files changed, 0 insertions, 0 deletions