Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 10343010: Fix two semantic errors from my previous check-in. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698