diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-03-13 19:15:27 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2019-03-27 13:43:21 +0000 |
commit | 7d74404325118bb1551c38b3bae418b42db843a1 (patch) | |
tree | 69560ebb05f3cc88a1c1c57a9738aee9724896ec /.qmake.conf | |
parent | 369305a9be0eb96513be66a70611259d33842cfc (diff) |
Replace a misguided test with a valid one
The code had min and max of an integral type and tested min + min / 2,
which naturally overflowed, provoking a compiler warning. The test
was meant to be testing min - min / 2; but min is even, so this is
just min / 2; and doubling that won't overflow (which is what the test
is about). As it happens, min + min / 2 is in fact max - max / 2,
which *would* be a good value to test, since max is odd. So add a
test for that and remove the broken test.
Change-Id: Iec34acbf0d5d7993d41ff844875dc10480b8eb1f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to '.qmake.conf')
0 files changed, 0 insertions, 0 deletions