summaryrefslogtreecommitdiffstats
path: root/python_modules/marshal.py
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-12-06 18:02:34 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:50 +0100
commit11269608a77b22df32ac1760b1df261c2b407af7 (patch)
tree93b165c2bd08547225d659a43bef4bb07f086845 /python_modules/marshal.py
parent8a40c89280c426d0fb95c7d9d4845b4a5feb6c37 (diff)
downloadspice-protocol-11269608a77b22df32ac1760b1df261c2b407af7.tar.gz
spice-protocol-11269608a77b22df32ac1760b1df261c2b407af7.tar.xz
spice-protocol-11269608a77b22df32ac1760b1df261c2b407af7.zip
mingw32 build: python_modules/marshal: use unsigned for for_loop index variable
Diffstat (limited to 'python_modules/marshal.py')
-rw-r--r--python_modules/marshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index 9ee1466..a82df98 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -120,7 +120,7 @@ def write_marshal_ptr_function(writer, target_type):
writer.header = header
writer.out_prefix = ""
if target_type.is_array():
- scope = writer.function(marshal_function, "SPICE_GNUC_UNUSED static void", "SpiceMarshaller *m, %s_t *ptr, int count" % target_type.element_type.primitive_type() + names_args)
+ scope = writer.function(marshal_function, "SPICE_GNUC_UNUSED static void", "SpiceMarshaller *m, %s_t *ptr, unsigned count" % target_type.element_type.primitive_type() + names_args)
else:
scope = writer.function(marshal_function, "void", "SpiceMarshaller *m, %s *ptr" % target_type.c_type() + names_args)
header.writeln("void " + marshal_function + "(SpiceMarshaller *m, %s *msg" % target_type.c_type() + names_args + ");")