diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-06-29 11:56:08 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-07-21 19:29:34 +1000 |
| commit | e6c290c3d145de81e23f406c84359860c4d6e632 (patch) | |
| tree | a53588f3c389e9d67227e64f63453bc486cb1199 /lib/uzlib/tinflate.c | |
| parent | 7f16bfca9f6d5b558b33b6f89566b50918449ed6 (diff) | |
lib/uzlib: Add a source_read_data var to pass to source_read_cb.
For better abstraction for users of this API.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'lib/uzlib/tinflate.c')
| -rw-r--r-- | lib/uzlib/tinflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uzlib/tinflate.c b/lib/uzlib/tinflate.c index 312485fd0..53536272f 100644 --- a/lib/uzlib/tinflate.c +++ b/lib/uzlib/tinflate.c @@ -185,7 +185,7 @@ unsigned char uzlib_get_byte(uzlib_uncomp_t *d) read next byte using it. (Note: the callback can also update ->source and ->source_limit). */ if (d->source_read_cb && !d->eof) { - int val = d->source_read_cb(d); + int val = d->source_read_cb(d->source_read_data); if (val >= 0) { return (unsigned char)val; } |
