diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 20:48:28 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 20:48:28 +0100 |
commit | 480ceca5f4e4a26d3d10eaf2360d548b1821ce41 (patch) | |
tree | e7307f256c8c76aa89bd6f3c9708a9ade999506f /src/app | |
parent | 9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b (diff) |
deflate: return number of bytes written to output
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/deflatetest/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/deflatetest/main.cc b/src/app/deflatetest/main.cc index 1fb394d..6829041 100644 --- a/src/app/deflatetest/main.cc +++ b/src/app/deflatetest/main.cc @@ -51,7 +51,7 @@ int main(void) for (uint8_t i = 0; i < 5; i++) { counter.start(); - int8_t ret = deflate_zlib((unsigned char*)deflate_input, sizeof(deflate_input), deflate_output, sizeof(deflate_output)); + int16_t ret = deflate_zlib((unsigned char*)deflate_input, sizeof(deflate_input), deflate_output, sizeof(deflate_output)); counter.stop(); kout << "deflate returned " << ret << endl; kout << "Output: " << (char*)deflate_output << endl; |