# HG changeset patch # User reimar # Date 1265998715 0 # Node ID 85a1b00a2413179d64c874999f84e428ca96986c # Parent d59349627f520430c5c512ec89faf12285344304 Use int8_t instead of char, the signedness of char can differ between systems. diff -r d59349627f52 -r 85a1b00a2413 iff.c --- a/iff.c Fri Feb 12 14:22:41 2010 +0000 +++ b/iff.c Fri Feb 12 18:18:35 2010 +0000 @@ -149,7 +149,7 @@ memset(row, 0, avctx->width); for (plane = 0; plane < avctx->bits_per_coded_sample; plane++) { for(x = 0; x < planewidth && buf < buf_end; ) { - char value = *buf++; + int8_t value = *buf++; int length; if (value >= 0) { length = value + 1; @@ -166,7 +166,7 @@ } } else { for(x = 0; x < avctx->width && buf < buf_end; ) { - char value = *buf++; + int8_t value = *buf++; int length; if (value >= 0) { length = value + 1;