Bug 1671623 - don't overloaded log10 r=pbone

Differential Revision: https://phabricator.services.mozilla.com/D93762
This commit is contained in:
Petr Sumbera 2020-10-19 06:42:45 +00:00
parent 3d1f26e2cd
commit fd342d7126

View File

@ -67,7 +67,7 @@ static unsigned NumDigits(T n) {
return 1;
}
double l = log10(n);
double l = log10(static_cast<double>(n));
double cl = ceil(l);
return l == cl ? unsigned(cl) + 1 : unsigned(cl);
}