- sp->total = scale(STATFS_TOTAL(statbuf), STATFS_SCALE(statbuf));
- sp->avail = scale(STATFS_AVAIL(statbuf), STATFS_SCALE(statbuf));
- sp->free = scale(STATFS_FREE(statbuf), STATFS_SCALE(statbuf));
+ sp->total = scale((off_t)STATFS_TOTAL(statbuf),
+ (off_t)STATFS_SCALE(statbuf));
+ sp->avail = scale((off_t)STATFS_AVAIL(statbuf),
+ (off_t)STATFS_SCALE(statbuf));
+ sp->free = scale((off_t)STATFS_FREE(statbuf),
+ (off_t)STATFS_SCALE(statbuf));