From: Philippe Waroquiers Date: Sat, 19 Jan 2013 10:33:45 +0000 (+0000) Subject: Fix warning in perm_malloc (reported by Florian) X-Git-Tag: svn/VALGRIND_3_9_0~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb09eb93491408c4f30616ff33bd0a15ef0be81f;p=thirdparty%2Fvalgrind.git Fix warning in perm_malloc (reported by Florian) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13243 --- diff --git a/coregrind/m_mallocfree.c b/coregrind/m_mallocfree.c index 1354aaa45b..16bc81d536 100644 --- a/coregrind/m_mallocfree.c +++ b/coregrind/m_mallocfree.c @@ -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.