[pypy-svn] r72616 - pypy/trunk/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Tue Mar 23 13:41:59 CET 2010


Author: arigo
Date: Tue Mar 23 13:41:58 2010
New Revision: 72616

Modified:
   pypy/trunk/pypy/translator/c/node.py
Log:
Oups, fix.


Modified: pypy/trunk/pypy/translator/c/node.py
==============================================================================
--- pypy/trunk/pypy/translator/c/node.py	(original)
+++ pypy/trunk/pypy/translator/c/node.py	Tue Mar 23 13:41:58 2010
@@ -227,7 +227,7 @@
         return '%s.items[%s]' % (baseexpr, index)
     access_expr_varindex = access_expr
 
-    def ptr_access_expr(self, baseexpr, index):
+    def ptr_access_expr(self, baseexpr, index, dummy=False):
         assert 0 <= index <= sys.maxint, "invalid constant index %r" % (index,)
         return self.itemindex_access_expr(baseexpr, index)
 
@@ -325,7 +325,7 @@
         return '%s[%d]' % (baseexpr, index)
     access_expr_varindex = access_expr
 
-    def ptr_access_expr(self, baseexpr, index):
+    def ptr_access_expr(self, baseexpr, index, dummy=False):
         assert 0 <= index <= sys.maxint, "invalid constant index %r" % (index,)
         return self.itemindex_access_expr(baseexpr, index)
 
@@ -368,7 +368,7 @@
     def getptrtype(self):
         return self.itemtypename.replace('@', '*@')
 
-    def access_expr(self, baseexpr, index):
+    def access_expr(self, baseexpr, index, dummy=False):
         if not isinstance(index, int):
             assert index.startswith('item')
             index = int(index[4:])



More information about the Pypy-commit mailing list