diff options
author | Mole Shang <[email protected]> | 2023-08-10 22:48:37 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2024-03-01 22:30:16 +0800 |
commit | 085c2a88d44ebac41c64c32ee6b796ff64e5331f (patch) | |
tree | 18d01810dae57b364b4234477ece4dc6cca59a56 /src/utils/size_info.c | |
parent | 2a4121c0e76f988a45b91145a9e2f50595817f81 (diff) | |
download | hinata-085c2a88d44ebac41c64c32ee6b796ff64e5331f.tar.gz hinata-085c2a88d44ebac41c64c32ee6b796ff64e5331f.tar.bz2 hinata-085c2a88d44ebac41c64c32ee6b796ff64e5331f.zip |
status: support large file sizes on 64bit systems
Convert all unsigned long nums to unsigned long long in order to
let the UI safely display sizes >= 4GB
Diffstat (limited to 'src/utils/size_info.c')
-rw-r--r-- | src/utils/size_info.c | 2 |
1 files changed, 1 insertions, 1 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) { |