[Spice-devel] Address a compilation warning due to missing typecast
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Feb 7 10:50:12 PST 2013
ack and pushed
On Thu, Feb 7, 2013 at 6:00 PM, Michael Tokarev <mjt at tls.msk.ru> wrote:
> Author: Serge Hallyn <serge.hallyn at ubuntu.com>
>
> This is a trivial typecast fix, -- all surrounding
> lines cast lines_end to PIXEL* but one is apparently
> forgotten. This fixes a compiler warning about
> incompatible types in assignment.
>
> --- a/spice-common/common/lz_compress_tmpl.c
> +++ b/spice-common/common/lz_compress_tmpl.c
> @@ -483,7 +483,7 @@ static void FNAME(compress)(Encoder *enc
>
> // fetch the first image segment that is not too small
> while (cur_seg && ((((PIXEL *)cur_seg->lines_end) - ((PIXEL *)cur_seg->lines)) < 4)) {
> - ip_start = cur_seg->lines;
> + ip_start = (PIXEL *)cur_seg->lines;
> // coping the segment
> if (cur_seg->lines != cur_seg->lines_end) {
> ip = (PIXEL *)cur_seg->lines;
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
--
Marc-André Lureau
More information about the Spice-devel
mailing list