diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-23 16:20:33 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:45 +0100 |
commit | 1d5d5272e28f8d12f5b93e4d8e5f85561eafda25 (patch) | |
tree | af6ea3dc0c2ed4f5867f4d72a49c98620fa7e25f /python_modules/ptypes.py | |
parent | db5b8fa673d72c5726f4e358c04e9f1f97039a7f (diff) | |
download | spice-protocol-1d5d5272e28f8d12f5b93e4d8e5f85561eafda25.tar.gz spice-protocol-1d5d5272e28f8d12f5b93e4d8e5f85561eafda25.tar.xz spice-protocol-1d5d5272e28f8d12f5b93e4d8e5f85561eafda25.zip |
Make pointers 32bit in new protocol format
Diffstat (limited to 'python_modules/ptypes.py')
-rw-r--r-- | python_modules/ptypes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py index 2ee1789..f4126a5 100644 --- a/python_modules/ptypes.py +++ b/python_modules/ptypes.py @@ -4,6 +4,8 @@ import types _types_by_name = {} _types = [] +default_pointer_size = 4 + def type_exists(name): return _types_by_name.has_key(name) @@ -426,7 +428,7 @@ class PointerType(Type): Type.__init__(self) self.name = None self.target_type = target_type - self.pointer_size = 8 + self.pointer_size = default_pointer_size def __str__(self): return "%s*" % (str(self.target_type)) |