Fix mxb::to_binary_size
The function now handles negative and zero values.
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user