[pypy-svn] r54405 - pypy/branch/io-improvements/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Sun May 4 15:25:40 CEST 2008


Author: fijal
Date: Sun May  4 15:25:40 2008
New Revision: 54405

Modified:
   pypy/branch/io-improvements/pypy/rlib/rgc.py
Log:
typo


Modified: pypy/branch/io-improvements/pypy/rlib/rgc.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rlib/rgc.py	(original)
+++ pypy/branch/io-improvements/pypy/rlib/rgc.py	Sun May  4 15:25:40 2008
@@ -249,8 +249,10 @@
         assert s_T.is_constant()
         assert isinstance(s_init_size, annmodel.SomeInteger)
         T = s_T.const
+        # limit ourselves to structs and to a fact that var-sized element
+        # does not contain pointers.
         assert isinstance(T, lltype.Struct)
-        assert isinstance(getattr(T, T._arrayfld), lltype.Primitive)
+        assert isinstance(getattr(T, T._arrayfld).OF, lltype.Primitive)
         return annmodel.SomePtr(lltype.Ptr(T))
 
     def specialize_call(self, hop):


More information about the pypy-svn mailing list