From ce71f40c0ffd77a630c7ac7527365423c234d104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Kom=C3=ADnek?= Date: Mon, 21 Sep 2020 12:15:32 +0200 Subject: [PATCH] Fixed cast warning - 1MB always fits int. --- bspatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bspatch.c b/bspatch.c index 2a64a75..de554f9 100644 --- a/bspatch.c +++ b/bspatch.c @@ -94,7 +94,7 @@ static int bz2_read(const struct bspatch_stream * stream, void * buffer, { size_t bytes_read = 0; int to_read; - while ((to_read = min(length - bytes_read, 1048576)) != 0) + while ((to_read = (int)min(length - bytes_read, 1048576)) != 0) { int bz2err; if (BZ2_bzRead(&bz2err, (BZFILE *)stream->opaque, (uint8_t *)buffer + bytes_read, to_read) != to_read)