diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/size_info.c | 2 | ||||
-rw-r--r-- | src/utils/size_info.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/size_info.c b/src/utils/size_info.c index 6b238bb..b846ae6 100644 --- a/src/utils/size_info.c +++ b/src/utils/size_info.c @@ -2,7 +2,7 @@ static const char *size_unit_map[] = {"B", "KB", "MB", "GB"}; -size_info_t num2sizeinfo(const unsigned long n) { +size_info_t num2sizeinfo(const unsigned long long n) { size_info_t size_info = {0}; long double tmp = (long double)n; if ((unsigned long)tmp / 1024 == 0) { diff --git a/src/utils/size_info.h b/src/utils/size_info.h index e0994c1..238ddf8 100644 --- a/src/utils/size_info.h +++ b/src/utils/size_info.h @@ -9,6 +9,6 @@ typedef struct size_info { const char *unit_str; } size_info_t; -size_info_t num2sizeinfo(const unsigned long n); +size_info_t num2sizeinfo(const unsigned long long n); #endif |