Commit f844a0dd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5d3ef616
......@@ -82,8 +82,6 @@ cpdef enum:
def incore(const unsigned char[::1] mem not None) -> bytearray:
cdef size_t size = mem.shape[0]
if size == 0:
# XXX ok? or pass addr, 0 to mincore?
# XXX if size==0 &mem[0] raises out-of-bounds
return bytearray()
cdef const void *addr = &mem[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment