Skip to content

Commit

Permalink
Fix "constant 2435016766 overflows int32" on GOARCH=arm
Browse files Browse the repository at this point in the history
Fix containerd#1

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit dennwc/btrfs@ee67271)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Jul 1, 2021
1 parent be7af04 commit fc53354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc53354

Please # to comment.