projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3872425
)
linux-user: fix types in a comparison
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000
(
05:53
+0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000
(
05:53
+0000)
-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>
linux-user/mmap.c
patch
|
blob
|
history
diff --git
a/linux-user/mmap.c
b/linux-user/mmap.c
index e10a6ef2e2d80038ec23d6d7afbdbf848fcf0959..035dfbd076a7042103ce819c9a1542089d058f79 100644
(file)
--- 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) {