mirror of
https://github.com/facebook/zstd.git
synced 2025-08-05 19:15:58 +03:00
Use unsigned long instead to help with some tests
This commit is contained in:
committed by
W. Felix Handte
parent
e5fc830795
commit
1ef6f3d079
@@ -121,7 +121,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg,
|
|||||||
* Functions
|
* Functions
|
||||||
***************************************/
|
***************************************/
|
||||||
|
|
||||||
char* humanSize(size_t size, char* str) {
|
char* humanSize(unsigned long size, char* str) {
|
||||||
if (size > 1125899906842624L) {
|
if (size > 1125899906842624L) {
|
||||||
snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
|
snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
|
||||||
} else if (size > 1099511627776L) {
|
} else if (size > 1099511627776L) {
|
||||||
|
@@ -122,7 +122,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const
|
|||||||
#define STRDUP(s) strdup(s)
|
#define STRDUP(s) strdup(s)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* humanSize(size_t size, char* str);
|
char* humanSize(unsigned long size, char* str);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls platform's equivalent of stat() on filename and writes info to statbuf.
|
* Calls platform's equivalent of stat() on filename and writes info to statbuf.
|
||||||
|
Reference in New Issue
Block a user