Fix #888: wrong volume free/total size on macOS

This commit is contained in:
Arun Prakash Jana 2021-03-17 23:37:26 +05:30
parent 93ca773c59
commit fddc5086dd
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -4181,9 +4181,9 @@ static size_t get_fs_info(const char *path, bool type)
return 0;
if (type == CAPACITY)
return svb.f_blocks << ffs((int)(svb.f_frsize >> 1));
return (size_t)svb.f_blocks << ffs((int)(svb.f_frsize >> 1));
return svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
return (size_t)svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
}
/* List or extract archive */