Commit a7b2a8d3 authored by Mark Florisson's avatar Mark Florisson

Add cast to PyObject * for nonecheck

parent 998f767f
......@@ -9117,7 +9117,7 @@ class NoneCheckNode(CoercionNode):
if self.type.is_pyobject:
return self.arg.py_result()
elif self.type.is_memoryviewslice:
return "%s.memview" % self.arg.result()
return "((PyObject *) %s.memview)" % self.arg.result()
else:
raise Exception("unsupported type")
......
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