mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Fix warning in perm_malloc (reported by Florian)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13243
This commit is contained in:
parent
436730a4f6
commit
cb09eb9349
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user