summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-21 20:48:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-21 20:48:28 +0100
commit480ceca5f4e4a26d3d10eaf2360d548b1821ce41 (patch)
treee7307f256c8c76aa89bd6f3c9708a9ade999506f /src/app
parent9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b (diff)
deflate: return number of bytes written to output
Diffstat (limited to 'src/app')
-rw-r--r--src/app/deflatetest/main.cc2
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;