fallback_malloc: silence qual-cast warning (NFC)

This silences a GCC 4.9.2 qual-cast warning in the fallback_malloc codepath.
NFC.

llvm-svn: 238944
This commit is contained in:
Saleem Abdulrasool 2015-06-03 17:25:33 +00:00
parent 28dbc5ab8b
commit fcdcf1b1e9
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ heap_node *node_from_offset ( const heap_offset offset )
{ return (heap_node *) ( heap + ( offset * sizeof (heap_node))); } { return (heap_node *) ( heap + ( offset * sizeof (heap_node))); }
heap_offset offset_from_node ( const heap_node *ptr ) heap_offset offset_from_node ( const heap_node *ptr )
{ return static_cast<heap_offset>(static_cast<size_t>(((char *) ptr ) - heap) / sizeof (heap_node)); } { return static_cast<heap_offset>(static_cast<size_t>(reinterpret_cast<const char *>(ptr) - heap) / sizeof (heap_node)); }
void init_heap () { void init_heap () {
freelist = (heap_node *) heap; freelist = (heap_node *) heap;