Skip to content

Commit

Permalink
Merge pull request #1203 from sapk-fork/fix-int64
Browse files Browse the repository at this point in the history
worktree: force convert to int64 to support 32bit os. Fix #1202
  • Loading branch information
mcuadros committed Aug 1, 2019
2 parents 6241d0e + 493e8c7 commit 0d1a009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worktree_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func init() {
fillSystemInfo = func(e *index.Entry, sys interface{}) {
if os, ok := sys.(*syscall.Stat_t); ok {
e.CreatedAt = time.Unix(os.Ctim.Sec, os.Ctim.Nsec)
e.CreatedAt = time.Unix(int64(os.Ctim.Sec), int64(os.Ctim.Nsec))
e.Dev = uint32(os.Dev)
e.Inode = uint32(os.Ino)
e.GID = os.Gid
Expand Down

0 comments on commit 0d1a009

Please sign in to comment.