From 61cf4bda3c2c6d6096f39c5b5d6d9b47cb8305af Mon Sep 17 00:00:00 2001 From: fedor Date: Thu, 31 Dec 2020 11:18:35 -0500 Subject: [PATCH] FreeBSD arm compilation fix --- stat_times_freebsd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat_times_freebsd.go b/stat_times_freebsd.go index 6518f56..115f138 100644 --- a/stat_times_freebsd.go +++ b/stat_times_freebsd.go @@ -12,8 +12,8 @@ func getTimeSpec(info os.FileInfo) timespec { stat := info.Sys().(*syscall.Stat_t) times := timespec{ Mtime: info.ModTime(), - Atime: time.Unix(stat.Atimespec.Sec, stat.Atimespec.Nsec), - Ctime: time.Unix(stat.Ctimespec.Sec, stat.Ctimespec.Nsec), + Atime: time.Unix(int64(stat.Atimespec.Sec), int64(stat.Atimespec.Nsec)), + Ctime: time.Unix(int64(stat.Ctimespec.Sec), int64(stat.Ctimespec.Nsec)), } return times }