summaryrefslogtreecommitdiff
path: root/inffast.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2021-06-21 09:07:59 +0300
committerHans Kristian Rosbach <hk-git@circlestorm.org>2021-06-21 17:48:31 +0200
commit74b416501d39d3813ffc0bc831b48431058feffb (patch)
tree100aa8b290287bababca818b82c276629e90424e /inffast.c
parentc4511df98f535712f4d06eea22bff99db346b63f (diff)
Cast calculation of safe length to unsigned int to avoid compiler warnings.
Diffstat (limited to 'inffast.c')
-rw-r--r--inffast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inffast.c b/inffast.c
index c431e50..136b98d 100644
--- a/inffast.c
+++ b/inffast.c
@@ -270,7 +270,7 @@ void Z_INTERNAL zng_inflate_fast(PREFIX3(stream) *strm, unsigned long start) {
if (dist >= len || dist >= state->chunksize)
out = functable.chunkcopy_safe(out, out - dist, len, safe);
else
- out = functable.chunkmemset_safe(out, dist, len, safe - out + 1);
+ out = functable.chunkmemset_safe(out, dist, len, (unsigned)((safe - out) + 1));
} else {
/* Whole reference is in range of current output. No range checks are
necessary because we start with room for at least 258 bytes of output,