summaryrefslogtreecommitdiff
path: root/odb.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2019-12-10 23:41:38 +0100
committerGitHub <[email protected]>2019-12-10 23:41:38 +0100
commitba1b5f0c23b33b25122cc42f2b8c6669fd08732b (patch)
treed7b16f854db35a2ae348bc1eaa11ba860f37c966 /odb.go
parent37e5b53f742d3127acfa2a9cfc57ccb94e1b8c59 (diff)
parentc5159e624e55cb14c56a3e5f36200be409fba9d6 (diff)
Merge pull request #528 from libgit2/cmn/bump-libgit2
Bump libgit2 to 6777db8e83
Diffstat (limited to 'odb.go')
-rw-r--r--odb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb.go b/odb.go
index fec0eb9..6489653 100644
--- a/odb.go
+++ b/odb.go
@@ -221,7 +221,7 @@ func (v *Odb) NewWriteStream(size int64, otype ObjectType) (*OdbWriteStream, err
runtime.LockOSThread()
defer runtime.UnlockOSThread()
- ret := C.git_odb_open_wstream(&stream.ptr, v.ptr, C.git_off_t(size), C.git_object_t(otype))
+ ret := C.git_odb_open_wstream(&stream.ptr, v.ptr, C.git_object_size_t(size), C.git_object_t(otype))
runtime.KeepAlive(v)
if ret < 0 {
return nil, MakeGitError(ret)