Fix "constant 2435016766 overflows int32" on GOARCH=arm

Fix #1

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2021-06-25 15:45:42 +09:00 committed by Denys Smirnov
parent d917b30ff0
commit ee67271a4c

View File

@ -15,7 +15,7 @@ func isBtrfs(path string) (bool, error) {
if err := syscall.Statfs(path, &stfs); err != nil {
return false, &os.PathError{Op: "statfs", Path: path, Err: err}
}
return stfs.Type == SuperMagic, nil
return int64(stfs.Type) == SuperMagic, nil
}
func findMountRoot(path string) (string, error) {