Run-length encoding/C: Difference between revisions

Removed extra loop from the rle_decode() which resulted to incorrect return value and strange output.
(moved from Run-length encoding)
 
(Removed extra loop from the rle_decode() which resulted to incorrect return value and strange output.)
Line 38:
char c;
 
for(tb=0 ; l>=0 ; l -= 2 ) {
i = *in++;
c = *in++;
Anonymous user