Skip to content

Commit b50dbc9

Browse files
authored
Merge pull request #14 from drake127/3g
Fixed cast warning - 1MB always fits int.
2 parents 724e939 + 4839bd2 commit b50dbc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bspatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int bz2_read(const struct bspatch_stream * stream, void * buffer,
9494
{
9595
size_t bytes_read = 0;
9696
int to_read;
97-
while ((to_read = min(length - bytes_read, 1048576)) != 0)
97+
while ((to_read = (int)min(length - bytes_read, 1048576)) != 0)
9898
{
9999
int bz2err;
100100
if (BZ2_bzRead(&bz2err, (BZFILE *)stream->opaque, (uint8_t *)buffer + bytes_read, to_read) != to_read)

0 commit comments

Comments
 (0)