We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12e43f commit 2eec897Copy full SHA for 2eec897
opal/util/path.c
@@ -704,7 +704,7 @@ opal_path_df(const char *path,
704
705
/* now set the amount of free space available on path */
706
/* sometimes buf.f_bavail is negative */
707
- *out_avail = buf.f_bsize * ((long)buf.f_bavail < 0 ? 0 : buf.f_bavail);
+ *out_avail = (uint64_t)buf.f_bsize * (uint64_t)(buf.f_bavail < 0 ? 0 : buf.f_bavail);
708
709
OPAL_OUTPUT_VERBOSE((10, 2, "opal_path_df: stat(v)fs states "
710
"path: %s has %"PRIu64 " B of free space.",
0 commit comments