From b2faa4590cfb2e27a43e7616399c79d330a28e01 Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Tue, 13 Feb 2018 23:59:01 +0000 Subject: [PATCH] Add time type conversion for 32 bit linix platforms Ensures the time.Unix function is given int64 arguments Signed-off-by: Trevor Porter --- fs/stat_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/stat_linux.go b/fs/stat_linux.go index 25bc6525..e079be19 100644 --- a/fs/stat_linux.go +++ b/fs/stat_linux.go @@ -22,5 +22,5 @@ func StatMtime(st *syscall.Stat_t) syscall.Timespec { // StatATimeAsTime returns st.Atim as a time.Time func StatATimeAsTime(st *syscall.Stat_t) time.Time { - return time.Unix(st.Atim.Sec, st.Atim.Nsec) + return time.Unix(int64(st.Atim.Sec), int64(st.Atim.Nsec)) // nolint: unconvert }