aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-09-18 05:53:14 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-09-18 05:53:14 +0000
commitd0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13 (patch)
tree9f862f4ef27b56af03fb5813aaca43b663233d87 /linux-user
parent3872425343439555e543cd606c44a79dbcc168d4 (diff)
downloadqemu-d0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13.zip
qemu-d0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13.tar.gz
qemu-d0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13.tar.bz2
linux-user: fix types in a comparison
-1ul is unsigned long, which does not necessarily match abi_ulong type. Fix by using abi_long instead. This also avoids a warning with GCC flag -Wtype-limits. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index e10a6ef..035dfbd 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -342,7 +342,7 @@ abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
munmap(ptr, size);
/* ENOMEM if we checked the whole of the target address space. */
- if (addr == -1ul) {
+ if (addr == (abi_ulong)-1) {
return (abi_ulong)-1;
} else if (addr == 0) {
if (wrapped) {