[pypy-commit] pypy default: No-op cleanup.
arigo
noreply at buildbot.pypy.org
Tue May 17 15:45:46 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r44242:c65d9223f6ec
Date: 2011-05-17 15:16 +0200
http://bitbucket.org/pypy/pypy/changeset/c65d9223f6ec/
Log: No-op cleanup.
diff --git a/pypy/translator/c/funcgen.py b/pypy/translator/c/funcgen.py
--- a/pypy/translator/c/funcgen.py
+++ b/pypy/translator/c/funcgen.py
@@ -705,7 +705,7 @@
offset = self.expr(op.args[2])
value = self.expr(op.args[3])
typename = cdecl(self.db.gettype(TYPE).replace('@', '*@'), '')
- return "*(((%(typename)s) %(addr)s ) + %(offset)s) = %(value)s;" % locals()
+ return "((%(typename)s) %(addr)s)[%(offset)s] = %(value)s;" % locals()
def OP_RAW_LOAD(self, op):
addr = self.expr(op.args[0])
@@ -713,7 +713,7 @@
offset = self.expr(op.args[2])
result = self.expr(op.result)
typename = cdecl(self.db.gettype(TYPE).replace('@', '*@'), '')
- return "%(result)s = *(((%(typename)s) %(addr)s ) + %(offset)s);" % locals()
+ return "%(result)s = ((%(typename)s) %(addr)s)[%(offset)s];" % locals()
def OP_CAST_PRIMITIVE(self, op):
TYPE = self.lltypemap(op.result)
More information about the pypy-commit
mailing list