summaryrefslogtreecommitdiff
path: root/src/status.h
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-10 22:48:37 +0800
committerMole Shang <[email protected]>2024-03-01 22:30:16 +0800
commit085c2a88d44ebac41c64c32ee6b796ff64e5331f (patch)
tree18d01810dae57b364b4234477ece4dc6cca59a56 /src/status.h
parent2a4121c0e76f988a45b91145a9e2f50595817f81 (diff)
downloadhinata-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/status.h')
-rw-r--r--src/status.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/status.h b/src/status.h
index 97f8a4e..5adfff5 100644
--- a/src/status.h
+++ b/src/status.h
@@ -6,8 +6,8 @@
typedef enum stat_type { SIZE_BYTES, TIME_SECS } stat_type_t;
typedef struct status {
- unsigned long cur;
- unsigned long total;
+ unsigned long long cur;
+ unsigned long long total;
bool is_done;
stat_type_t type;
} status_t;