1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-19 23:44:46 +00:00

Return value from qbs_left()

This commit is contained in:
Samuel Gomes 2024-06-22 12:34:20 +05:30
parent a95a21bc2b
commit 6f0b8fe11c

View file

@ -29,8 +29,7 @@ qbs *func__deflate(qbs *text) {
auto compSize = compressBound(fileSize);
auto dest = qbs_new(compSize, 1); // compressing directly to the qbs gives us a performance boost
compress(dest->chr, &compSize, text->chr, fileSize); // discard result because we do not do any error checking
qbs_left(dest, compSize); // discard the return value because it will return the same tmp qbs anyway
return dest;
return qbs_left(dest, compSize);
}
qbs *func__inflate(qbs *text, int64_t originalSize, int32_t passed) {