From 2eec8970ff63d61692182e0cad81a9bb820e11b6 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Wed, 24 Aug 2016 12:50:15 +0900 Subject: [PATCH] opal/util: fix (again) incorrect type casting in opal_path_df this fixes previous commit open-mpi/ompi@a439afce5ba1bfb65f049bb2ba1113b2762feb46 --- opal/util/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/util/path.c b/opal/util/path.c index dece446d59..2b4bfa22ea 100644 --- a/opal/util/path.c +++ b/opal/util/path.c @@ -704,7 +704,7 @@ opal_path_df(const char *path, /* now set the amount of free space available on path */ /* sometimes buf.f_bavail is negative */ - *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); OPAL_OUTPUT_VERBOSE((10, 2, "opal_path_df: stat(v)fs states " "path: %s has %"PRIu64 " B of free space.",