[Spice-devel] [PATCH 23/24] mingw32 build: python_modules/marshal: use unsigned for for_loop index variable

Hans de Goede hdegoede at redhat.com
Wed Dec 8 00:48:16 PST 2010


Ack.

On 12/07/2010 10:28 PM, Alon Levy wrote:
> ---
>   python_modules/marshal.py |    2 +-
>   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 + ");")


More information about the Spice-devel mailing list