Commit 90aa9a32 authored by Xavier Thompson's avatar Xavier Thompson

Fix membership test on const cyplist and cypset

parent f4ee2a22
......@@ -134,7 +134,7 @@ cdef cypclass cyplist[V]:
size_type __len__(const self):
return self._elements.size()
bint __contains__(self, const value_type value):
bint __contains__(const self, const value_type value):
for v in self._elements:
if value is v:
return 1
......
......@@ -82,7 +82,7 @@ cdef cypclass cypset[V]:
size_type __len__(const self):
return self._elements.size()
bint __contains__(self, const value_type value):
bint __contains__(const self, const value_type value):
return self._elements.count(value)
bint isdisjoint(const self, const cypset[V] other):
......
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