From 23d837746dbf12563ff632a1a6d38ec3026193e7 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 15 May 2014 15:20:43 +0000 Subject: [PATCH] Compile on x86 (ILP32). --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index b376ed7a2317..f437bbfd2df8 100644 --- a/image.c +++ b/image.c @@ -80,7 +80,7 @@ image_copyin(lba_t blk, int fd, uint64_t *sizep) if (error) break; blk += bcnt; - partial = (bcnt * secsz != rdsz) ? 1 : 0; + partial = ((ssize_t)(bcnt * secsz) != rdsz) ? 1 : 0; } free(buffer); if (sizep != NULL)