Fix unit-test build error on ARM64

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2015-05-20 10:45:04 +08:00
parent 24fd826fc0
commit 1aca4cb80e

View file

@ -873,7 +873,8 @@ func getNlink(path string) (uint64, error) {
if !ok { if !ok {
return 0, fmt.Errorf("expected type *syscall.Stat_t, got %t", stat.Sys()) 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) { func getInode(path string) (uint64, error) {