We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 724e939 + 4839bd2 commit b50dbc9Copy full SHA for b50dbc9
1 file changed
bspatch.c
@@ -94,7 +94,7 @@ static int bz2_read(const struct bspatch_stream * stream, void * buffer,
94
{
95
size_t bytes_read = 0;
96
int to_read;
97
- while ((to_read = min(length - bytes_read, 1048576)) != 0)
+ while ((to_read = (int)min(length - bytes_read, 1048576)) != 0)
98
99
int bz2err;
100
if (BZ2_bzRead(&bz2err, (BZFILE *)stream->opaque, (uint8_t *)buffer + bytes_read, to_read) != to_read)
0 commit comments