From 7d268be8b0cf6ae6f494a5817b1577934f262a65 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 25 Jun 2021 15:45:42 +0900 Subject: [PATCH] Fix "constant 2435016766 overflows int32" on GOARCH=arm Fix #1 Signed-off-by: Akihiro Suda (cherry picked from commit dennwc/btrfs@ee67271a4cb46adc6cc1eab5eacb4561db6b9a54) Signed-off-by: Akihiro Suda --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 45aede7..2dbd66c 100644 --- a/utils.go +++ b/utils.go @@ -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) {