Add missing case for converting Go `bool`.

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

Branch: refs/heads/master
Commit: d947d8819be72c23b75213fe499aaf2371fc2c61
Parents: a556c51
Author: Marvin Humphrey <[email protected]>
Authored: Wed Aug 5 20:07:10 2015 -0700
Committer: Marvin Humphrey <[email protected]>
Committed: Thu Aug 6 19:51:33 2015 -0700

----------------------------------------------------------------------
 runtime/go/clownfish/clownfish.go | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/d947d881/runtime/go/clownfish/clownfish.go
----------------------------------------------------------------------
diff --git a/runtime/go/clownfish/clownfish.go 
b/runtime/go/clownfish/clownfish.go
index 65cde55..34b6f5f 100644
--- a/runtime/go/clownfish/clownfish.go
+++ b/runtime/go/clownfish/clownfish.go
@@ -281,6 +281,10 @@ func GoToClownfish(value interface{}, class 
unsafe.Pointer, nullable bool) unsaf
                if klass == C.CFISH_FLOAT || klass == C.CFISH_OBJ {
                        converted = GoToFloat(value)
                }
+       case bool:
+               if klass == C.CFISH_BOOLEAN || klass == C.CFISH_OBJ {
+                       converted = GoToBoolean(value)
+               }
        case []interface{}:
                if klass == C.CFISH_VECTOR || klass == C.CFISH_OBJ {
                        converted = GoToVector(value)

Reply via email to