diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2021-06-21 09:07:59 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2021-06-21 17:48:31 +0200 |
commit | 74b416501d39d3813ffc0bc831b48431058feffb (patch) | |
tree | 100aa8b290287bababca818b82c276629e90424e /inffast.c | |
parent | c4511df98f535712f4d06eea22bff99db346b63f (diff) |
Cast calculation of safe length to unsigned int to avoid compiler warnings.
Diffstat (limited to 'inffast.c')
-rw-r--r-- | inffast.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |