comparison tools/lib64gfx.c @ 1412:c386d287fa1e

Use Uint8 instead of int in the rle decoder.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Nov 2017 03:52:37 +0200
parents a9afb2ad39cb
children 3baed76155a1
comparison
equal deleted inserted replaced
1411:a9afb2ad39cb 1412:c386d287fa1e
220 dst = *mem; 220 dst = *mem;
221 dstEnd = *mem + C64_RAM_SIZE; 221 dstEnd = *mem + C64_RAM_SIZE;
222 222
223 while (src <= srcEnd && dst <= dstEnd) 223 while (src <= srcEnd && dst <= dstEnd)
224 { 224 {
225 int c = *src++; 225 Uint8 c = *src++;
226 if (c == rleMarker && src + 2 <= srcEnd) 226 if (c == rleMarker && src + 2 <= srcEnd)
227 { 227 {
228 int cnt = *src++; 228 int cnt = *src++;
229 c = *src++; 229 c = *src++;
230 while (cnt-- && dst <= dstEnd) 230 while (cnt-- && dst <= dstEnd)