| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index b3f504fa48f02ba52e31d4614b85d1dffe7dc4b2..f1018511ae0aa97766cc8bb845230b91707a50de 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1631,7 +1631,7 @@ DART_EXPORT Dart_Handle Dart_StringToBytes(Dart_Handle object,
|
| }
|
| const char* cstring = str.ToCString();
|
| *length = Utf8::Length(str);
|
| - char* result = reinterpret_cast<char*>(Api::Allocate(isolate, *length));
|
| + uint8_t* result = reinterpret_cast<uint8_t*>(Api::Allocate(isolate, *length));
|
| if (result == NULL) {
|
| return Api::NewError("Unable to allocate memory");
|
| }
|
|
|