From b80a55e67b90a87646c44474822a40c00b821d37 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Fri, 17 Jul 2009 13:51:45 +0200 Subject: [PATCH] Fix warning in kvm-all.c This fixes a warning I stumbled across while compiling qemu on PPC64. Signed-off-by: Alexander Graf Signed-off-by: Anthony Liguori --- kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index 8567ac9163..961fa32d27 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -226,7 +226,7 @@ static int kvm_dirty_pages_log_change(target_phys_addr_t phys_addr, if (mem == NULL) { fprintf(stderr, "BUG: %s: invalid parameters " TARGET_FMT_plx "-" TARGET_FMT_plx "\n", __func__, phys_addr, - phys_addr + size - 1); + (target_phys_addr_t)(phys_addr + size - 1)); return -EINVAL; } -- GitLab