commit | d3c7060ba53d87c58103b1776815fea9d29e39cc | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@google.com> | Wed Oct 21 15:58:40 2015 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Oct 21 15:58:40 2015 +0000 |
tree | 6a1d594df62923fc670291c40cf0265f56024648 | |
parent | f0500a08230f068a1cf55e4de3cfc389d51f8669 [diff] | |
parent | 7d17af08a80c3d9a14a3fe11d70bd12d59641a7b [diff] |
Merge "Promote free bytes calculation to 64 bits" am: 7d17af08a8 * commit '7d17af08a80c3d9a14a3fe11d70bd12d59641a7b': 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; }