From 480ceca5f4e4a26d3d10eaf2360d548b1821ce41 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Jan 2021 20:48:28 +0100 Subject: deflate: return number of bytes written to output --- src/app/deflatetest/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app') 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; -- cgit v1.2.3