summaryrefslogtreecommitdiff
path: root/cffi/vengine_cpy.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-10-17 17:07:46 +0200
committerArmin Rigo <arigo@tunes.org>2013-10-17 17:07:46 +0200
commit4540da0cd806e184e694fa315299cacc04628e3b (patch)
tree31d69b739366a03ed85853d7ea75cfce72508336 /cffi/vengine_cpy.py
parentd892fff022aaa3465ee61af81a4415e30f683edd (diff)
downloadcffi-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_cpy.py')
-rw-r--r--cffi/vengine_cpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
index e8f3575..bcd0e06 100644
--- a/cffi/vengine_cpy.py
+++ b/cffi/vengine_cpy.py
@@ -491,7 +491,7 @@ class VCPythonEngine(object):
#
function = getattr(module, layoutfuncname)
layout = function()
- 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]