From d44eb9d794910d83bca97c5191963049549cef7f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 3 Feb 2015 22:06:06 +0100 Subject: [PATCH] Always cast link counter to uint64 --- node_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_linux.go b/node_linux.go index d44a546cc..fb6fe21c2 100644 --- a/node_linux.go +++ b/node_linux.go @@ -35,7 +35,7 @@ func (node *Node) fill_extra(path string, fi os.FileInfo) (err error) { switch node.Type { case "file": node.Size = uint64(stat.Size) - node.Links = stat.Nlink + node.Links = uint64(stat.Nlink) case "dir": // nothing to do case "symlink":