[pypy-commit] pypy win32-fixes5: off-by-one error for avoiding empty { } output
mattip
noreply at buildbot.pypy.org
Wed Oct 1 00:21:51 CEST 2014
Author: mattip <matti.picus at gmail.com>
Branch: win32-fixes5
Changeset: r73749:a96c108bcec4
Date: 2014-09-30 20:36 +0300
http://bitbucket.org/pypy/pypy/changeset/a96c108bcec4/
Log: off-by-one error for avoiding empty { } output
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
@@ -596,7 +596,7 @@
else:
padding_drop = []
type, name = self.get_declaration()
- if name != self.name and self.getvarlength() < 1 and len(data) < 1:
+ if name != self.name and self.getvarlength() < 1 and len(data) < 2:
# an empty union
yield ''
return
More information about the pypy-commit
mailing list