diff options
Diffstat (limited to 'libc/bionic/tdestroy.cpp')
-rw-r--r-- | libc/bionic/tdestroy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/tdestroy.cpp b/libc/bionic/tdestroy.cpp index 49614b8..95c3e64 100644 --- a/libc/bionic/tdestroy.cpp +++ b/libc/bionic/tdestroy.cpp @@ -21,7 +21,7 @@ // Destroy a tree and free all allocated resources. // This is a GNU extension, not available from BSD. void tdestroy(void* root, void (*destroy_func)(void*)) { - node_t* root_node = (node_t*) root; + node_t* root_node = reinterpret_cast<node_t*>(root); if (root_node == NULL) { return; } |