You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[devel@prod-70676b ~]$ go get github.com/misakwa/gozyre
# github.com/misakwa/gozyre
go/src/github.com/misakwa/gozyre/util.go:61: cannot use unsafe.Pointer(zmsg) (type unsafe.Pointer) as type **C.struct__zmsg_t in argument to func literal
[devel@prod-70676b ~]$
[devel@prod-70676b ~]$ go version
go version go1.9.3 linux/arm
[devel@prod-70676b ~]$
Patch proposal:
diff --git a/util.go b/util.go
index 87ee4e8..085dd02 100644
--- a/util.go
+++ b/util.go
@@ -58,7 +58,7 @@ func bytesToZmsg(ch <-chan []byte) (*C.struct__zmsg_t, error) {
// gc collects it too early
ret := C.zmsg_addmem(zmsg, unsafe.Pointer(&frame[0]), C.size_t(len(frame)))
if ret != 0 {
- C.zmsg_destroy(unsafe.Pointer(zmsg))
+ C.zmsg_destroy(&zmsg)
err = ErrAddingFrame
break
}
The patch proposal follows other xxx_destroy() calls, found a bit above, in the same file:
Example:
Patch proposal:
The patch proposal follows other xxx_destroy() calls, found a bit above, in the same file:
The text was updated successfully, but these errors were encountered: