diff options
| author | Jesse Ezell <[email protected]> | 2014-04-04 00:45:41 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-04-04 00:47:21 -0700 |
| commit | 9d8cbe7547d499fefb69bf42e975a2f7e8e7fca4 (patch) | |
| tree | 26278b344c517ba9e24e7f0cb73f594ab9f6c5ce | |
| parent | 864c57f554821143b6298e3b927d362d996a32c2 (diff) | |
use cast_ptr instead of ptr for travis go tip build
| -rw-r--r-- | merge.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -182,7 +182,7 @@ func (r *Repository) MergeCommits(ours *Commit, theirs *Commit, options *MergeOp idx := &Index{} - ret := C.git_merge_commits(&idx.ptr, r.ptr, ours.ptr, theirs.ptr, copts) + ret := C.git_merge_commits(&idx.ptr, r.ptr, ours.cast_ptr, theirs.cast_ptr, copts) if ret < 0 { return nil, MakeGitError(ret) } @@ -198,7 +198,7 @@ func (r *Repository) MergeTrees(ancestor *Tree, ours *Tree, theirs *Tree, option idx := &Index{} - ret := C.git_merge_trees(&idx.ptr, r.ptr, ancestor.ptr, ours.ptr, theirs.ptr, copts) + ret := C.git_merge_trees(&idx.ptr, r.ptr, ancestor.cast_ptr, ours.cast_ptr, theirs.cast_ptr, copts) if ret < 0 { return nil, MakeGitError(ret) } |
