[pypy-svn] r23122 - pypy/dist/pypy/rpython/memory

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Feb 7 20:31:28 CET 2006


Author: cfbolz
Date: Tue Feb  7 20:31:27 2006
New Revision: 23122

Modified:
   pypy/dist/pypy/rpython/memory/gctransform.py
Log:
rtti's can only be attached to GcStructs


Modified: pypy/dist/pypy/rpython/memory/gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctransform.py	Tue Feb  7 20:31:27 2006
@@ -249,7 +249,7 @@
         return result
 
     def get_rtti(self, TYPE):
-        if isinstance(TYPE, lltype.Struct):
+        if isinstance(TYPE, lltype.GcStruct):
             try:
                 return lltype.getRuntimeTypeInfo(TYPE)
             except ValueError:



More information about the Pypy-commit mailing list