Merge "Promote free bytes calculation to 64 bits" am: 7d17af08a8

am: d3c7060ba5

* commit 'd3c7060ba53d87c58103b1776815fea9d29e39cc':
  Promote free bytes calculation to 64 bits
gugelfrei
Jeff Sharkey 9 years ago committed by android-build-merger
commit 0130fc6cfb

@ -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