From 493e8c7dfdec9657fd1adaf62f16010ae299c629 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Thu, 1 Aug 2019 15:04:26 +0200 Subject: [PATCH] worktree: force convert to int64 to support 32bit os. Fix #1202 Signed-off-by: Antoine GIRARD --- worktree_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worktree_linux.go b/worktree_linux.go index efb01b5a5..891cb1cf3 100644 --- a/worktree_linux.go +++ b/worktree_linux.go @@ -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