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

This commit is contained in:
NiLuJe
2019-02-21 09:56:54 +01:00
committed by Frans de Jonge
parent 4015901136
commit afa12ef8ce

View File

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