Re: [Spice-devel] [PATCH 2/2 v2] python: Fix -Wsign-compare

2014-09-03 Thread Marc-André Lureau
ack - Original Message - > The return of the get_array_size() is used as a limit in a loop, > being compared with an unsigned index (indexes are always unsigned). > To avoid the -Wsign-compare warning, let's cast the return of the > get_array_size() to unsigned and make GCC happier. > ---

[Spice-devel] [PATCH 2/2 v2] python: Fix -Wsign-compare

2014-09-03 Thread Fabiano FidĂȘncio
The return of the get_array_size() is used as a limit in a loop, being compared with an unsigned index (indexes are always unsigned). To avoid the -Wsign-compare warning, let's cast the return of the get_array_size() to unsigned and make GCC happier. --- python_modules/marshal.py | 6 +++--- 1 fil