aboutsummaryrefslogtreecommitdiff
path: root/librsync/librsync_callback.go
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2016-04-30 23:41:03 +0200
committerLaria Carolin Chabowski <laria@laria.me>2016-04-30 23:41:03 +0200
commit4d3dc3d585a7232477d8fcf717113217578afa17 (patch)
treef38824251e6eb4ff64919ea89bcb1729ed49656f /librsync/librsync_callback.go
parent3a9208ec940a902e1c00580dc17ca422f3e4f0c3 (diff)
parent181d4286ad8dbca39bb4d43475b31ab9b3c626ee (diff)
downloadgolibrsync-4d3dc3d585a7232477d8fcf717113217578afa17.tar.gz
golibrsync-4d3dc3d585a7232477d8fcf717113217578afa17.tar.bz2
golibrsync-4d3dc3d585a7232477d8fcf717113217578afa17.zip
Merge branch 'fix-newer-versions'
Diffstat (limited to 'librsync/librsync_callback.go')
-rw-r--r--librsync/librsync_callback.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/librsync/librsync_callback.go b/librsync/librsync_callback.go
index c8b9e4f..ace9779 100644
--- a/librsync/librsync_callback.go
+++ b/librsync/librsync_callback.go
@@ -12,8 +12,8 @@ import (
)
//export patchCallbackGo
-func patchCallbackGo(_patcher unsafe.Pointer, pos C.rs_long_t, len *C.size_t, _buf *unsafe.Pointer) C.rs_result {
- patcher := (*Patcher)(_patcher)
+func patchCallbackGo(_patcher uintptr, pos C.rs_long_t, len *C.size_t, _buf *unsafe.Pointer) C.rs_result {
+ patcher := getPatcher(_patcher)
patcher.buf = make([]byte, int(*len))
n, err := patcher.basis.ReadAt(patcher.buf, int64(pos))