Re: [PATCH spice-gtk 4/4] Change uint32_t to int32_t

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

 



> 
> ---
>  src/channel-usbredir.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/channel-usbredir.c b/src/channel-usbredir.c
> index ddd0d1b..a6cbfe0 100644
> --- a/src/channel-usbredir.c
> +++ b/src/channel-usbredir.c
> @@ -796,7 +796,7 @@ static void spice_usbredir_channel_up(SpiceChannel *c)
>  static int try_handle_compressed_msg(SpiceMsgCompressedData
>  *compressed_data_msg,
>                                       uint8_t **buf,
>                                       int *size) {
> -    uint32_t decompressed_size = 0;
> +    int32_t decompressed_size = 0;
>      char *decompressed = NULL;
>  
>      if (compressed_data_msg->uncompressed_size == 0) {

I suppose this change is done as LZ4_decompress_safe returns int
indicating errors with <0.
I think than that int (the same type as LZ4_decompress_safe
returns) would be better and this patch should be squashed in
1/4.

Frediano.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]