[Spice-devel] [PATCH] Fix compile warning

Serge Hallyn serge.hallyn at canonical.com
Fri Feb 1 14:33:07 PST 2013


cur_seg->lines was not being typecast to (PIXEL *) when assigned
to ip_start.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 common/lz_compress_tmpl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/lz_compress_tmpl.c b/common/lz_compress_tmpl.c
index 7e2ce42..2b66833 100644
--- a/common/lz_compress_tmpl.c
+++ b/common/lz_compress_tmpl.c
@@ -483,7 +483,7 @@ static void FNAME(compress)(Encoder *encoder)
 
     // 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;
-- 
1.8.0



More information about the Spice-devel mailing list