#1076 Fix memory display on 64-bit Windows

master
Marius Kintel 2014-12-16 17:40:13 -05:00
parent a40b2848e9
commit 0448b0f1db
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ int PlatformUtils::setenv(const char *name, const char *value, int overwrite)
#endif
}
std::string PlatformUtils::toMemorySizeString(unsigned long bytes, int digits)
std::string PlatformUtils::toMemorySizeString(uint64_t bytes, int digits)
{
static const char *units[] = { "B", "kB", "MB", "GB", "TB", NULL };

View File

@ -84,5 +84,5 @@ namespace PlatformUtils {
* Convert the number of bytes to a human readable string with
* a given number of digits.
*/
std::string toMemorySizeString(unsigned long bytes, int digits);
std::string toMemorySizeString(uint64_t bytes, int digits);
}