diff options
author | Armin Rigo <arigo@tunes.org> | 2013-10-17 17:07:46 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2013-10-17 17:07:46 +0200 |
commit | 4540da0cd806e184e694fa315299cacc04628e3b (patch) | |
tree | 31d69b739366a03ed85853d7ea75cfce72508336 /cffi/vengine_gen.py | |
parent | d892fff022aaa3465ee61af81a4415e30f683edd (diff) | |
download | cffi-4540da0cd806e184e694fa315299cacc04628e3b.tar.gz |
Support partial unions in a way very similar to partial structs.
Needed for a python-cffi mail.
Diffstat (limited to 'cffi/vengine_gen.py')
-rw-r--r-- | cffi/vengine_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py index dc38bb7..24cce71 100644 --- a/cffi/vengine_gen.py +++ b/cffi/vengine_gen.py @@ -282,7 +282,7 @@ class VGenericEngine(object): if x < 0: break layout.append(x) num += 1 - if isinstance(tp, model.StructType) and tp.partial: + if isinstance(tp, model.StructOrUnion) and tp.partial: # use the function()'s sizes and offsets to guide the # layout of the struct totalsize = layout[0] |