readability fiddle

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2808
This commit is contained in:
Nicholas Nethercote 2004-10-19 17:54:02 +00:00
parent e2f30c46bc
commit e9bf009719

View File

@ -491,10 +491,11 @@ Addr VG_(find_map_space)(Addr addr, UInt len, Bool for_client)
static const Bool debug = False || mem_debug;
Segment *s;
Addr ret;
Addr limit = (for_client ? VG_(client_end)-1 : VG_(valgrind_last));
Addr limit = (for_client ? VG_(client_end)-1 : VG_(valgrind_last));
Addr base = (for_client ? VG_(client_mapbase) : VG_(valgrind_base));
if (addr == 0)
addr = for_client ? VG_(client_mapbase) : VG_(valgrind_base);
addr = base;
else {
/* leave space for redzone and still try to get the exact
address asked for */