Fix mxb::to_binary_size

The function now handles negative and zero values.
This commit is contained in:
Markus Mäkelä
2019-06-19 16:44:37 +03:00
parent 6a83abe5cf
commit 03a7850de4
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace maxbase
*
* @return Value as a human readable size e.g. 5.01MiB
*/
std::string to_binary_size(int64_t size);
std::string to_binary_size(size_t size);
/**
* Format parameters to a string. Uses printf-formatting.