mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 04:24:48 +00:00
Return value from qbs_left()
This commit is contained in:
parent
a95a21bc2b
commit
6f0b8fe11c
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ qbs *func__deflate(qbs *text) {
|
||||||
auto compSize = compressBound(fileSize);
|
auto compSize = compressBound(fileSize);
|
||||||
auto dest = qbs_new(compSize, 1); // compressing directly to the qbs gives us a performance boost
|
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
|
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 qbs_left(dest, compSize);
|
||||||
return dest;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qbs *func__inflate(qbs *text, int64_t originalSize, int32_t passed) {
|
qbs *func__inflate(qbs *text, int64_t originalSize, int32_t passed) {
|
||||||
|
|
Loading…
Reference in a new issue