This commit is contained in:
Bohdan Kapliuk 2025-01-12 17:26:45 +02:00
parent 1e3a1d91af
commit c12adb9efd

View File

@ -49,7 +49,7 @@ int compress_1(const char* input_file_name, const char* output_file_name) {
while (i + count < size && data[i + count] == byte && count < 255) { while (i + count < size && data[i + count] == byte && count < 255) {
count++; count++;
} }
fprintf(output, "%c%d", byte, (int)count); fprintf(output, "%c%zu", byte, (int)count);
i += count; i += count;
} }