range_libc icon indicating copy to clipboard operation
range_libc copied to clipboard

Segfault in PyOMap initialization from ndarray

Open danieldugas opened this issue 5 years ago • 0 comments

https://github.com/kctess5/range_libc/blob/1251dc3c72f8dd72204ca32ac745fa90cb097e4e/pywrapper/RangeLibc.pyx#L142

Shouldn't this be

self.thisptr = new OMap(<int>width,<int>height)

instead?

Otherwise at L145 we access grid[width-1] whereas grid is initialized to size height here

danieldugas avatar May 08 '19 12:05 danieldugas