diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2026-01-19 17:06:02 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-01-24 15:22:09 +0100 |
| commit | d47d6c3c7aced39bae955010c383abb0d9e73b03 (patch) | |
| tree | d62a7c72c1a0ad38b81468de34274c2942b1485b /test | |
| parent | 8cf6fc32d0d23d6f4a1b0c4dc03689e4bf6472ca (diff) | |
| download | Project-Tick-d47d6c3c7aced39bae955010c383abb0d9e73b03.tar.gz Project-Tick-d47d6c3c7aced39bae955010c383abb0d9e73b03.zip | |
Use MIN macro in a few more instances throughout the code
Diffstat (limited to 'test')
| -rw-r--r-- | test/infcover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/infcover.c b/test/infcover.c index ba922dfcb3..582feaebd6 100644 --- a/test/infcover.c +++ b/test/infcover.c @@ -331,7 +331,7 @@ static void inf(char *hex, char *what, unsigned step, int win, unsigned len, int ret = PREFIX(inflateEnd)(©); assert(ret == Z_OK); err = 9; /* don't care next time around */ have += strm.avail_in; - strm.avail_in = step > have ? have : step; + strm.avail_in = MIN(step, have); have -= strm.avail_in; } while (strm.avail_in); free(in); |
