Fix warning in perm_malloc (reported by Florian)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13243
This commit is contained in:
Philippe Waroquiers 2013-01-19 10:33:45 +00:00
parent 436730a4f6
commit cb09eb9349

View File

@ -2281,7 +2281,7 @@ void* VG_(arena_perm_malloc) ( ArenaId aid, SizeT size, Int align )
// memory range of it. This superblock is however counted in the
// mmaped statistics.
Superblock* new_sb = newSuperblock (a, size);
a->perm_malloc_limit = &new_sb->payload_bytes[new_sb->n_payload_bytes - 1];
a->perm_malloc_limit = (Addr)&new_sb->payload_bytes[new_sb->n_payload_bytes - 1];
// We do not mind starting allocating from the beginning of the superblock
// as afterwards, we "lose" it as a superblock.