Author: mattip <matti.pi...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit