From 9b2caaf40bd667492b4e6228dd3d1f5e44083456 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 29 Sep 2013 17:51:20 +0200 Subject: hw/alpha: Fix compiler warning (integer constant is too large) From buildbot default_i386_rhel61: CC alpha-softmmu/hw/alpha/typhoon.o hw/alpha/typhoon.c: In function 'typhoon_translate_iommu': hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type Signed-off-by: Stefan Weil Acked-by: Richard Henderson Signed-off-by: Michael Tokarev --- hw/alpha/typhoon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/alpha/typhoon.c') diff --git a/hw/alpha/typhoon.c b/hw/alpha/typhoon.c index aac9a32..59e1bb8 100644 --- a/hw/alpha/typhoon.c +++ b/hw/alpha/typhoon.c @@ -700,7 +700,7 @@ static IOMMUTLBEntry typhoon_translate_iommu(MemoryRegion *iommu, hwaddr addr) } } - if (addr >= 0x80000000000 && addr <= 0xfffffffffff) { + if (addr >= 0x80000000000ull && addr <= 0xfffffffffffull) { /* Check the fourth window for DAC enable and window enable. */ if ((pchip->win[3].wba & 0x80000000001ull) == 0x80000000001ull) { uint64_t pte_addr; -- cgit v1.1