summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/df/df.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 2147e78..830f49a 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -400,7 +400,8 @@ prthumanval(double bytes)
*/
#define fsbtoblk(num, fsbs, bs) \
(((fsbs) != 0 && (fsbs) < (bs)) ? \
- (num) / ((bs) / (fsbs)) : (num) * ((fsbs) / (bs)))
+ (num) / (intmax_t)((bs) / (fsbs)) : \
+ (num) * (intmax_t)((fsbs) / (bs)))
/*
* Print out status about a file system.
OpenPOWER on IntegriCloud