mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
readability fiddle
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2808
This commit is contained in:
parent
e2f30c46bc
commit
e9bf009719
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user