Index: runtime/vm/dart_api_impl.cc |
=================================================================== |
--- runtime/vm/dart_api_impl.cc (revision 23640) |
+++ runtime/vm/dart_api_impl.cc (working copy) |
@@ -1042,7 +1042,8 @@ |
static uint8_t* allocator(uint8_t* ptr, intptr_t old_size, intptr_t new_size) { |
- return Utils::Realloc(ptr, old_size, new_size); |
+ void* new_ptr = realloc(reinterpret_cast<void*>(ptr), new_size); |
+ return reinterpret_cast<uint8_t*>(new_ptr); |
} |