From 419f23d655e52ce40357ae1e8edd4902f2949167 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Thu, 28 Jan 2016 12:26:56 -0800 Subject: [PATCH] Explicit int64 for 32-bit platforms. --- lib/ftime_unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ftime_unix.go b/lib/ftime_unix.go index 3dfacc2..2f6a3f5 100644 --- a/lib/ftime_unix.go +++ b/lib/ftime_unix.go @@ -17,7 +17,8 @@ type FileTime struct { } func timeSpecToTime(ts unix.Timespec) time.Time { - return time.Unix(ts.Sec, ts.Nsec) + // The casts to int64 are needed because on 386, these are int32s. + return time.Unix(int64(ts.Sec), int64(ts.Nsec)) } // LoadFileTime returns a FileTime associated with the file.