From ca8b9c3784f1f0f074cff1e5474d4a16b80885c6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 16 Dec 2022 16:18:38 +0000 Subject: gif: Remove unnecessary cast --- src/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gif.c b/src/gif.c index 5f7e599..688fe12 100644 --- a/src/gif.c +++ b/src/gif.c @@ -1343,7 +1343,7 @@ static nsgif_error nsgif__process_frame( return NSGIF_OK; } } else { - pos = (uint8_t *)(gif->buf + gif->buf_pos); + pos = gif->buf + gif->buf_pos; /* Check if we've finished */ if (pos < end && pos[0] == NSGIF_TRAILER) { -- cgit v1.2.1