[fix] Leave size_t alone in FFI stuff: flip that back to size_t (#4629)

pull/4633/head
NiLuJe 5 years ago committed by Frans de Jonge
parent 4015901136
commit afa12ef8ce

@ -22,7 +22,7 @@ function StreamMessageQueue:start()
if rc ~= 0 then
error("cannot connect to " .. endpoint)
end
local id_size = ffi.new("unsigned int[1]", 256)
local id_size = ffi.new("size_t[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