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

Commit

Permalink
force convert to int64 to support 32bit os
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk committed Aug 1, 2019
1 parent 6241d0e commit 71bf7de
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 71bf7de

Please sign in to comment.