Commits

Amaury Forgeot d'Arc committed 60712d9

Fix again.
Should find a better name for this function.

Comments (0)

Files changed (1)

rpython/rtyper/lltypesystem/lltype.py

         return v
 
     def setitem(self, index, value):
-        assert typeOf(value) == self._TYPE.OF
+        assert isConvertibleFrom(self._TYPE.OF, typeOf(value))
         self.items[index] = value
 
 assert not '__dict__' in dir(_array)