[pypy-commit] pypy array-overallocation-in-nursery: Detail
arigo
noreply at buildbot.pypy.org
Tue Oct 22 13:15:43 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: array-overallocation-in-nursery
Changeset: r67506:a9c7ed165db9
Date: 2013-10-22 13:14 +0200
http://bitbucket.org/pypy/pypy/changeset/a9c7ed165db9/
Log: Detail
diff --git a/rpython/translator/c/node.py b/rpython/translator/c/node.py
--- a/rpython/translator/c/node.py
+++ b/rpython/translator/c/node.py
@@ -701,7 +701,7 @@
slength = '%d, %d, ' % (length, length)
else:
slength = '%d, ' % length
- if T.OF is Void or len(self.obj.items) == 0:
+ if T.OF is Void or length == 0:
yield '\t%s' % slength.rstrip(', ')
yield '}'
elif T.OF == Char:
More information about the pypy-commit
mailing list