diff options
author | Brad King <brad.king@kitware.com> | 2018-10-02 19:09:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-02 19:40:29 (GMT) |
commit | 6d288846178a1b75e9d50578d710265516ce8f82 (patch) | |
tree | 5ad1a970ae76464037705eb909a495b368332fe7 /Help/release | |
parent | 3bb8dda0479388277293d2d1949c1c294826d296 (diff) | |
download | CMake-6d288846178a1b75e9d50578d710265516ce8f82.zip CMake-6d288846178a1b75e9d50578d710265516ce8f82.tar.gz CMake-6d288846178a1b75e9d50578d710265516ce8f82.tar.bz2 |
cmCTestRunTest: Avoid float/int conversions in number width logic
Use of `std::log10` added by commit 02c5091c90 (cmCTestRunTest: Simplify
number width computation, 2018-09-08) broke our number width computation
on some platforms where
static_cast<int>(std::log10(static_cast<size_t>(10)))
somehow produces `0` instead of `1`. Re-implement the logic to avoid
floating-point computations.
Diffstat (limited to 'Help/release')
0 files changed, 0 insertions, 0 deletions