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
This commit is contained in:
NiLuJe
2018-08-30 15:36:42 +02:00
committed by GitHub
parent 8f86579667
commit 4320359b25

View File

@@ -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)