- printf(" %4d%% (%2d) %12ld: %s\n",
- sections ? (int)(size / st.st_size * 100.0) : 100,
- sections ? sections : 1,
- (unsigned long)size,
- path);
+ printf(" %4jd%% (%2d) %12jd: %s\n",
+ (intmax_t) (sections && st.st_size ? size * 100 / st.st_size : 100),
+ sections ? sections : 1,
+ (intmax_t) size,
+ path);