diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-12-16 16:18:06 +0000 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-12-16 16:32:48 +0000 |
commit | ccec86deb2d8063aa60b72cf0cc099c9990b6c24 (patch) | |
tree | 152e7a5d2ab472b95abeaaf8c91444bdcf697253 | |
parent | 1f39b5d057f614a46c99534f8fb4d64846fdbbee (diff) | |
download | libnsgif-ccec86deb2d8063aa60b72cf0cc099c9990b6c24.tar.gz libnsgif-ccec86deb2d8063aa60b72cf0cc099c9990b6c24.tar.bz2 |
gif: Store buffer length/position as size_t
This makes the internal behaviour match the public API.
-rw-r--r-- | src/gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,7 +32,7 @@ typedef struct nsgif_frame { struct nsgif_frame_info info; /** offset (in bytes) to the GIF frame data */ - uint32_t frame_offset; + size_t frame_offset; /** whether the frame has previously been decoded. */ bool decoded; /** whether the frame is totally opaque */ @@ -102,9 +102,9 @@ struct nsgif { /** pointer to GIF data */ const uint8_t *buf; /** current index into GIF data */ - uint32_t buf_pos; + size_t buf_pos; /** total number of bytes of GIF data available */ - uint32_t buf_len; + size_t buf_len; /** current number of frame holders */ uint32_t frame_holders; |