Merge pull request #1203 from sapk-fork/fix-int64

worktree: force convert to int64 to support 32bit os. Fix #1202