linux-user: fix types in a comparison
commitd0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000 (18 05:53 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000 (18 05:53 +0000)
tree9f862f4ef27b56af03fb5813aaca43b663233d87
parent3872425343439555e543cd606c44a79dbcc168d4
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>
linux-user/mmap.c