From d994d08664b9e1184696b2a91264f27a556afb70 Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Sat, 3 Feb 2018 22:27:33 +0000 Subject: [PATCH] Add time type conversion for 32bit Unix platforms Ensures the time.Unix function is given int64 arguments Signed-off-by: Trevor Porter --- sys/stat_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/stat_unix.go b/sys/stat_unix.go index 799b9b997..0f83ab117 100644 --- a/sys/stat_unix.go +++ b/sys/stat_unix.go @@ -24,5 +24,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 }