1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

uint64 cast for Nlink

This commit is contained in:
jgfrm 2017-02-07 20:34:47 +01:00
parent 51cb0adcb9
commit 0ff027a8e9

View file

@ -47,5 +47,5 @@ func (e *dirEntry) equals(other *dirEntry) bool {
func nlink(info os.FileInfo) uint64 {
stat, _ := info.Sys().(*syscall.Stat_t)
return stat.Nlink
return uint64(stat.Nlink)
}