mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] Leave size_t alone in FFI stuff: flip that back to size_t (#4629)
This commit is contained in:
@@ -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