Commit c2ace9cf authored by Stefan Behnel's avatar Stefan Behnel

fix number comparison in Shadow.py

--HG--
extra : transplant_source : %B2Q%A0%A7c%3B%EE%40%93%08%E1%C9-%83%88%BA%ACU%7D%8D
parent ee3d7fc4
......@@ -120,7 +120,7 @@ class PointerType(CythonType):
self._items = [cast(self._basetype, a) for a in value._items]
elif isinstance(value, list):
self._items = [cast(self._basetype, a) for a in value]
elif value is None or value is 0:
elif value is None or value == 0:
self._items = []
else:
raise ValueError
......
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