Explicit int64 for 32-bit platforms.

This commit is contained in:
Kyle Isom 2016-01-28 12:26:56 -08:00
parent fe557e2202
commit 419f23d655
1 changed files with 2 additions and 1 deletions

View File

@ -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.