Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 0d1a009

Browse files
authored
Merge pull request #1203 from sapk-fork/fix-int64
worktree: force convert to int64 to support 32bit os. Fix #1202
2 parents 6241d0e + 493e8c7 commit 0d1a009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worktree_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func init() {
1313
fillSystemInfo = func(e *index.Entry, sys interface{}) {
1414
if os, ok := sys.(*syscall.Stat_t); ok {
15-
e.CreatedAt = time.Unix(os.Ctim.Sec, os.Ctim.Nsec)
15+
e.CreatedAt = time.Unix(int64(os.Ctim.Sec), int64(os.Ctim.Nsec))
1616
e.Dev = uint32(os.Dev)
1717
e.Inode = uint32(os.Ino)
1818
e.GID = os.Gid

0 commit comments

Comments
 (0)