Merge "Promote free bytes calculation to 64 bits"

am: 7d17af08a8

* commit '7d17af08a80c3d9a14a3fe11d70bd12d59641a7b':
  Promote free bytes calculation to 64 bits
gugelfrei
Jeff Sharkey 9 years ago committed by android-build-merger
commit d3c7060ba5

@ -410,7 +410,7 @@ status_t NormalizeHex(const std::string& in, std::string& out) {
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;
}

Loading…
Cancel
Save