From 1aca4cb80e9317b05a54637640e72305ed7e659d Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Wed, 20 May 2015 10:45:04 +0800 Subject: [PATCH] Fix unit-test build error on ARM64 Signed-off-by: Qiang Huang --- archive/archive_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archive/archive_test.go b/archive/archive_test.go index f24f628..0bf878e 100644 --- a/archive/archive_test.go +++ b/archive/archive_test.go @@ -873,7 +873,8 @@ func getNlink(path string) (uint64, error) { if !ok { return 0, fmt.Errorf("expected type *syscall.Stat_t, got %t", stat.Sys()) } - return statT.Nlink, nil + // We need this conversion on ARM64 + return uint64(statT.Nlink), nil } func getInode(path string) (uint64, error) {