[pypy-commit] cffi cffi-1.0: oups

arigo noreply at buildbot.pypy.org
Sat Apr 25 12:06:08 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1817:0da180ccac93
Date: 2015-04-25 12:06 +0200
http://bitbucket.org/cffi/cffi/changeset/0da180ccac93/

Log:	oups

diff --git a/cffi/model.py b/cffi/model.py
--- a/cffi/model.py
+++ b/cffi/model.py
@@ -272,6 +272,8 @@
         self.build_c_name_with_marker()
 
     def has_anonymous_struct_fields(self):
+        if self.fldtypes is None:
+            return False
         for name, type in zip(self.fldnames, self.fldtypes):
             if name == '' and isinstance(type, StructOrUnion):
                 return True


More information about the pypy-commit mailing list