lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [1/2] lucy git commit: Fix Go bindings after Blob ctor changes
Date Thu, 03 Mar 2016 13:56:08 GMT
Repository: lucy
Updated Branches:
  refs/heads/master 243988811 -> a7a652f37


Fix Go bindings after Blob ctor changes


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/f0500e35
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/f0500e35
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/f0500e35

Branch: refs/heads/master
Commit: f0500e351b9a1d19c6b10265af348e20bd288669
Parents: 2439888
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Thu Mar 3 14:36:26 2016 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Thu Mar 3 14:36:26 2016 +0100

----------------------------------------------------------------------
 go/lucy/search.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/f0500e35/go/lucy/search.go
----------------------------------------------------------------------
diff --git a/go/lucy/search.go b/go/lucy/search.go
index f2fa54a..d0a1dbe 100644
--- a/go/lucy/search.go
+++ b/go/lucy/search.go
@@ -408,7 +408,7 @@ func newMockMatcher(docIDs []int32, scores []float32) MockMatcher {
 		for i := 0; i < len(scores); i++ {
 			C.float32_set(floats, C.size_t(i), C.float(scores[i]))
 		}
-		blob = C.cfish_Blob_new_steal((*C.char)(unsafe.Pointer(floats)), C.size_t(size))
+		blob = C.cfish_Blob_new_steal(unsafe.Pointer(floats), C.size_t(size))
 		defer C.cfish_decref(unsafe.Pointer(blob))
 	}
 	matcher := C.lucy_MockMatcher_new(docIDsCF, blob)


Mime
View raw message