mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1671623 - don't overloaded log10 r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D93762
This commit is contained in:
parent
3d1f26e2cd
commit
fd342d7126
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user