Index: runtime/lib/isolate.cc |
=================================================================== |
--- runtime/lib/isolate.cc (revision 10080) |
+++ runtime/lib/isolate.cc (working copy) |
@@ -251,8 +251,7 @@ |
static char* BuildMainName(const char* class_name) { |
intptr_t len = OS::SNPrint(NULL, 0, "%s.main", class_name) + 1; |
- char* chars = reinterpret_cast<char*>( |
- Isolate::Current()->current_zone()->Allocate(len)); |
+ char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
OS::SNPrint(chars, len, "%s.main", class_name); |
return chars; |
} |