Fix -Wshorten-64-to-32 warning

This commit is contained in:
Takayuki Matsuoka 2021-05-27 17:24:00 +09:00
parent 7a966c1511
commit 4a9bbc2480

View File

@ -97,7 +97,7 @@ void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize)
while (ptr != offsetsEnd) {
write_int(outFp, *ptr++);
}
write_int(outFp, offsetsEnd - offsets);
write_int(outFp, (int) (offsetsEnd - offsets));
}
}