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

tismer at codespeak.net tismer at codespeak.net
Thu Mar 3 00:36:38 CET 2005


Author: tismer
Date: Thu Mar  3 00:36:38 2005
New Revision: 9594

Modified:
   pypy/dist/pypy/translator/genc.py
Log:
modulo a small bug...

Modified: pypy/dist/pypy/translator/genc.py
==============================================================================
--- pypy/dist/pypy/translator/genc.py	(original)
+++ pypy/dist/pypy/translator/genc.py	Thu Mar  3 00:36:38 2005
@@ -96,8 +96,8 @@
 
     def uniquename(self, basename):
         name = self.namespace.uniquename(basename)
-        self.globalobjects.append(basename)
-        self.globaldecl.append('static PyObject *%s;' % (basename,))
+        self.globalobjects.append(name)
+        self.globaldecl.append('static PyObject *%s;' % (name,))
         return name
 
     def initcode_python(self, name, pyexpr):



More information about the Pypy-commit mailing list