One more øMQ FFI fix that slipped through the cracks (#4188)

(Actually should be size_t, but gcc-lua downgraded that to the
pointed-to type, for... reasons?).

Fix #4187
pull/4189/head
NiLuJe 6 years ago committed by GitHub
parent 8f86579667
commit 4320359b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@ function StreamMessageQueue:start()
if rc ~= 0 then
error("cannot connect to " .. endpoint)
end
local id_size = ffi.new("size_t[1]", 256)
local id_size = ffi.new("unsigned int[1]", 256)
local buffer = ffi.new("uint8_t[?]", id_size[0])
-- @todo: check return of zmq_getsockopt
zmq.zmq_getsockopt(self.socket, C.ZMQ_IDENTITY, buffer, id_size)

Loading…
Cancel
Save