From 941ec4762f944db907dd63b47d41c287b987ecea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 15 Feb 2016 12:02:10 +0100 Subject: [PATCH] Silenced a compiler warning for different types Some compilers issue a warning when the alternatives in a "? :" expression have different signedness. --- ntfsprogs/ntfsclone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 5a92dafb..cbbbc854 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -1011,7 +1011,7 @@ static void restore_image(void) Printf("Restoring NTFS from image ...\n"); progress_init(&progress, p_counter, opt.std_out ? - sle64_to_cpu(image_hdr.nr_clusters) + 1 : + (u64)sle64_to_cpu(image_hdr.nr_clusters) + 1 : le64_to_cpu(image_hdr.inuse) + 1, 100);