forked from OSchip/llvm-project
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:
parent
28dbc5ab8b
commit
fcdcf1b1e9
|
@ -68,7 +68,7 @@ heap_node *node_from_offset ( const heap_offset offset )
|
|||
{ return (heap_node *) ( heap + ( offset * sizeof (heap_node))); }
|
||||
|
||||
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 () {
|
||||
freelist = (heap_node *) heap;
|
||||
|
|
Loading…
Reference in New Issue