Skip to content

Commit

Permalink
windows: buffers: fix buffer allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Dec 12, 2015
1 parent 9cd9a8a commit 2559b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uv/buffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __new__(cls, buffers):
c_buffers = [ffi.new('char[]', buf) for buf in buffers]
uv_buffers = ffi.new('uv_buf_t[]', len(buffers))
for index, buf in enumerate(buffers):
uv_buffer_set(uv_buffers[index], c_buffers[index], len(buf))
uv_buffer_set(ffi.addressof(uv_buffers[index]), c_buffers[index], len(buf))
return tuple.__new__(cls, (c_buffers, uv_buffers))

def __len__(self):
Expand Down

0 comments on commit 2559b19

Please sign in to comment.