diff options
Diffstat (limited to 'shared/globalFunctions.cpp')
-rw-r--r-- | shared/globalFunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/globalFunctions.cpp b/shared/globalFunctions.cpp index 9cfa6fff..c02a1d77 100644 --- a/shared/globalFunctions.cpp +++ b/shared/globalFunctions.cpp @@ -32,9 +32,9 @@ double globalFunctions::wxStringToDouble(const wxString& number) } -unsigned int globalFunctions::getDigitCount(const unsigned int number) //count number of digits +size_t globalFunctions::getDigitCount(size_t number) //count number of digits { - return number == 0 ? 1 : static_cast<unsigned int>(::log10(static_cast<double>(number))) + 1; + return number == 0 ? 1 : static_cast<size_t>(::log10(static_cast<double>(number))) + 1; } |