mirror of https://github.com/vitalif/openscad
#1076 Fix memory display on 64-bit Windows
parent
a40b2848e9
commit
0448b0f1db
|
@ -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 };
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue