[pypy-svn] r12195 - pypy/dist/pypy/translator

tismer at codespeak.net tismer at codespeak.net
Wed May 11 19:22:59 CEST 2005


Author: tismer
Date: Wed May 11 19:22:59 2005
New Revision: 12195

Modified:
   pypy/dist/pypy/translator/typer.py
Log:
buglet in typer

Modified: pypy/dist/pypy/translator/typer.py
==============================================================================
--- pypy/dist/pypy/translator/typer.py	(original)
+++ pypy/dist/pypy/translator/typer.py	Wed May 11 19:22:59 2005
@@ -69,7 +69,7 @@
             v = Constant(v.value)
             v.concretetype = concretetype
 
-        elif v.concretetype != concretetype:
+        elif hasattr(v, 'concretetype') and v.concretetype != concretetype:
             # XXX do we need better conversion paths?
 
             # 1) convert to the generic type



More information about the Pypy-commit mailing list