Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to