summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@theqtcompany.com>2016-01-06 14:40:50 +0100
committerEdward Welbourne <edward.welbourne@theqtcompany.com>2016-01-13 13:58:49 +0000
commitcd9625fc3cacb4efd0da57d9f5780671f5c1310f (patch)
tree701f12295cddd0fd957a1e41942395768fe8738f /mkspecs
parenteef772577594b59d9cee5d55da5c47cd81008735 (diff)
Correct floordiv() to cope with implementation-defined division.
Irrelevant once we get to C++11 (so we can revert this in 5.7), but division's rounding direction is implementation defined when either operand is negative [0]. The prior code assumed C++11's truncation (a.k.a. round towards zero), but rounding may be downwards instead. [0] http://en.cppreference.com/w/cpp/language/operator_arithmetic#Multiplicative_operators Change-Id: I2b6b27e1cf629def48b25433e81b9ed8230d8795 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions