[fix] Leave size_t alone in FFI stuff: flip that back to size_t (#4629)
This commit is contained in:
1 parent
4015901136
commit
afa12ef8ce
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user