Merge "Promote free bytes calculation to 64 bits" am: 7d17af08a8 am: d3c7060ba5
am: 0130fc6cfb
* commit '0130fc6cfb77c4a835e7df2f48fc47fdd1a9855a':
Promote free bytes calculation to 64 bits
diff --git a/Utils.cpp b/Utils.cpp
index e19c9df..51ef4c4 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -410,7 +410,7 @@
uint64_t GetFreeBytes(const std::string& path) {
struct statvfs sb;
if (statvfs(path.c_str(), &sb) == 0) {
- return sb.f_bfree * sb.f_bsize;
+ return (uint64_t)sb.f_bfree * sb.f_bsize;
} else {
return -1;
}