Fix some signed/unsigned compiler warnings.

This commit is contained in:
Milan Broz
2015-09-08 08:12:07 +02:00
parent 2f964d95d8
commit 7d9a14fd24
2 changed files with 8 additions and 8 deletions

View File

@@ -852,7 +852,7 @@ static void zero_rest_of_device(int fd, size_t block_size, void *buf,
s1 = block_size;
while (!quit && *bytes) {
if (*bytes < s1)
if (*bytes < (uint64_t)s1)
s1 = *bytes;
s2 = write(fd, buf, s1);