summaryrefslogtreecommitdiff
path: root/odb.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-02-13 02:50:31 +0000
committerlhchavez <[email protected]>2020-02-13 02:50:31 +0000
commit150a8c60169ee69f4a869acbc10dbe097274605a (patch)
treeccadf6203e85d60bfa8d6221dd94ff470f9a66f3 /odb.go
parentb201c503ab5788b2ce5511fa75792127e27e254c (diff)
parent75c5e41422f224a6fde40903c4af4cf1afbd2d46 (diff)
Merge remote-tracking branch 'origin/master' into actions
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)