diff options
author | phintuka <phintuka> | 2010-05-21 11:55:15 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-05-21 11:55:15 +0000 |
commit | bb7f698042cdafb335989d5c2feb6a0b55d243c4 (patch) | |
tree | efc186b0d7c764f9db336d61cea67ca7128ddd48 | |
parent | 1d481e1ce8defffe27307f834bc68a759e54f81a (diff) | |
download | xineliboutput-bb7f698042cdafb335989d5c2feb6a0b55d243c4.tar.gz xineliboutput-bb7f698042cdafb335989d5c2feb6a0b55d243c4.tar.bz2 |
int -> uint (avoid comparing signed and unsigned vars).
(Thanks to Winfried Koehler)
-rw-r--r-- | tools/rle.c | 6 | ||||
-rw-r--r-- | tools/rle.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/rle.c b/tools/rle.c index 2425630b..7aede06b 100644 --- a/tools/rle.c +++ b/tools/rle.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: rle.c,v 1.3 2009-02-16 16:14:58 phintuka Exp $ + * $Id: rle.c,v 1.4 2010-05-21 11:55:15 phintuka Exp $ * */ @@ -23,10 +23,10 @@ * rle_compress() * */ -int rle_compress(xine_rle_elem_t **rle_data, const uint8_t *data, uint w, uint h) +uint rle_compress(xine_rle_elem_t **rle_data, const uint8_t *data, uint w, uint h) { xine_rle_elem_t rle, *rle_p = 0, *rle_base; - int x, y, num_rle = 0, rle_size = 8128; + uint x, y, num_rle = 0, rle_size = 8128; const uint8_t *c; rle_p = (xine_rle_elem_t*)malloc(4*rle_size); diff --git a/tools/rle.h b/tools/rle.h index d6900e8f..b4fed0dd 100644 --- a/tools/rle.h +++ b/tools/rle.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: rle.h,v 1.2 2009-02-16 16:14:58 phintuka Exp $ + * $Id: rle.h,v 1.3 2010-05-21 11:55:15 phintuka Exp $ * */ @@ -25,7 +25,7 @@ struct xine_rle_elem_s; struct xine_clut_s; -int rle_compress(struct xine_rle_elem_s **rle_data, const uint8_t *data, uint w, uint h); +uint rle_compress(struct xine_rle_elem_s **rle_data, const uint8_t *data, uint w, uint h); void rle_uncompress_lut8(const struct xine_rle_elem_s *rle_data, uint8_t *data, uint w, uint h); |