Skip to content

Commit 2eec897

Browse files
committed
opal/util: fix (again) incorrect type casting in opal_path_df
this fixes previous commit a439afc
1 parent b12e43f commit 2eec897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/util/path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ opal_path_df(const char *path,
704704

705705
/* now set the amount of free space available on path */
706706
/* sometimes buf.f_bavail is negative */
707-
*out_avail = buf.f_bsize * ((long)buf.f_bavail < 0 ? 0 : buf.f_bavail);
707+
*out_avail = (uint64_t)buf.f_bsize * (uint64_t)(buf.f_bavail < 0 ? 0 : buf.f_bavail);
708708

709709
OPAL_OUTPUT_VERBOSE((10, 2, "opal_path_df: stat(v)fs states "
710710
"path: %s has %"PRIu64 " B of free space.",

0 commit comments

Comments
 (0)