Skip to content

cmCTestRunTest: Avoid float/int conversions in number width logic

Brad King requested to merge brad.king/cmake:ctest-num-width into master

Use of std::log10 added by !2240 (merged) 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.

Merge request reports