summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-20 11:34:23 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-20 11:34:23 +0200
commit2e9604d00d655f276f22b9ad1cce4fb631ac06a8 (patch)
tree51ddc427773a95f852744eb3fd8089c33d6ad893 /python_modules/codegen.py
parent5f664e0ffb62c4a1d13b7647aea3c1115150eb88 (diff)
downloadspice-2e9604d00d655f276f22b9ad1cce4fb631ac06a8.tar.gz
spice-2e9604d00d655f276f22b9ad1cce4fb631ac06a8.tar.xz
spice-2e9604d00d655f276f22b9ad1cce4fb631ac06a8.zip
demarshaller: Fix palette marshalling
It turns out that using base + sizeof(struct) is not a good way to access an array at the end of a struct. For SpicePalette sizeof is 16, but offset of ents is 12. Using this calculation in the demarshaller breaks things badly, so now we use the actual array member.
Diffstat (limited to 'python_modules/codegen.py')
0 files changed, 0 insertions, 0 deletions