You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/03/03 14:56:08 UTC

[1/2] lucy git commit: Fix Go bindings after Blob ctor changes

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 <we...@aevum.de>
Authored: Thu Mar 3 14:36:26 2016 +0100
Committer: Nick Wellnhofer <we...@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)


[2/2] lucy git commit: Build Go bindings with -lm

Posted by nw...@apache.org.
Build Go bindings with -lm

Needed on Linux, should be harmless on Darwin.


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

Branch: refs/heads/master
Commit: a7a652f37b5fa7bd9ff66cd0ee6786a91720232d
Parents: f0500e3
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Thu Mar 3 14:54:20 2016 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Thu Mar 3 14:54:20 2016 +0100

----------------------------------------------------------------------
 go/build.go | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/a7a652f3/go/build.go
----------------------------------------------------------------------
diff --git a/go/build.go b/go/build.go
index ad951f8..8353d66 100644
--- a/go/build.go
+++ b/go/build.go
@@ -537,6 +537,7 @@ func writeConfigGO() {
 			"// #cgo LDFLAGS: -L%s\n"+
 			"// #cgo LDFLAGS: -llucy\n"+
 			"// #cgo LDFLAGS: -lclownfish\n"+
+			"// #cgo LDFLAGS: -lm\n"+
 			"import \"C\"\n",
 		buildDir, buildDir, buildDir, buildDir, installedLibDir, cfLibDir)
 	ioutil.WriteFile(configGO, []byte(content), 0666)