diff options
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/recompiler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cffi/recompiler.py b/cffi/recompiler.py index 20e912b..d6530e5 100644 --- a/cffi/recompiler.py +++ b/cffi/recompiler.py @@ -855,8 +855,9 @@ class Recompiler: try: if ftype.is_integer_type() or fbitsize >= 0: # accept all integers, but complain on float or double - prnt(" (void)((p->%s) | 0); /* check that '%s.%s' is " - "an integer */" % (fname, cname, fname)) + if fname != '': + prnt(" (void)((p->%s) | 0); /* check that '%s.%s' is " + "an integer */" % (fname, cname, fname)) continue # only accept exactly the type declared, except that '[]' # is interpreted as a '*' and so will match any array length. |