summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-20 11:34:23 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commitf5c2e64f820ebe61472afe12a7e2f61dabd16c4d (patch)
treeaada536609450645136091a34dd5df9146537eff /python_modules/codegen.py
parent68d204f649a5573a9c0005e4b8ca5586093adf49 (diff)
downloadspice-common-f5c2e64f820ebe61472afe12a7e2f61dabd16c4d.tar.gz
spice-common-f5c2e64f820ebe61472afe12a7e2f61dabd16c4d.tar.xz
spice-common-f5c2e64f820ebe61472afe12a7e2f61dabd16c4d.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