diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2013-02-07 21:00:56 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-02-07 19:49:18 +0100 |
commit | 149bb89adb0d7676c41085b3e41f07113e05c880 (patch) | |
tree | 01675fd33b90da2586a3d6c2125e854128b30cab | |
parent | 9ffc614a6c2c81363f81719a31d3f369d0d51762 (diff) |
Address a compilation warning due to missing typecast
Author: Serge Hallyn <serge.hallyn@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.
-rw-r--r-- | common/lz_compress_tmpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |