Re: [spice-gtk][PATCH] Fix -Wsign-compare

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack

----- Original Message -----
> ---
>  tests/util.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/util.c b/tests/util.c
> index e090f5c..b9b9535 100644
> --- a/tests/util.c
> +++ b/tests/util.c
> @@ -36,7 +36,7 @@ static void test_dos2unix(void)
>  {
>      GError *err = NULL;
>      gchar *tmp;
> -    int i;
> +    unsigned int i;
>  
>      for (i = 0; i < G_N_ELEMENTS(dosunix); i++) {
>          if (!(dosunix[i].flags & DOS2UNIX))
> @@ -59,7 +59,7 @@ static void test_unix2dos(void)
>  {
>      GError *err = NULL;
>      gchar *tmp;
> -    int i;
> +    unsigned int i;
>  
>      for (i = 0; i < G_N_ELEMENTS(dosunix); i++) {
>          if (!(dosunix[i].flags & UNIX2DOS))
> @@ -137,9 +137,9 @@ static void test_set_bit(void)
>              "\xf7\x31",
>          }
>      };
> -    int i, j, bit;
> +    unsigned int i, j, bit;
>      guint8 *dest;
> -    int bytes;
> +    unsigned int bytes;
>  
>      for (i = 0 ; i < G_N_ELEMENTS(tests); ++i) {
>          bytes = (tests[i].len + 7) / 8;
> @@ -158,7 +158,8 @@ static void test_set_bit(void)
>  
>  static void test_mono_edge_highlight(void)
>  {
> -    int i, j, bit;
> +    unsigned int i;
> +    int j, bit;
>      guint8 *and;
>      guint8 *xor;
>      guint8 *dest;
> --
> 1.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]