diff options
Diffstat (limited to 'mojo/services/html_viewer/blink_platform_impl.cc')
-rw-r--r-- | mojo/services/html_viewer/blink_platform_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mojo/services/html_viewer/blink_platform_impl.cc b/mojo/services/html_viewer/blink_platform_impl.cc index bf920d7..048fdfe 100644 --- a/mojo/services/html_viewer/blink_platform_impl.cc +++ b/mojo/services/html_viewer/blink_platform_impl.cc @@ -157,10 +157,10 @@ blink::WebData BlinkPlatformImpl::loadResource(const char* resource) { for (size_t i = 0; i < arraysize(kDataResources); ++i) { if (!strcmp(resource, kDataResources[i].name)) { int length; - const char* data = + const unsigned char* data = blink_resource_map_.GetResource(kDataResources[i].id, &length); CHECK(data != nullptr && length > 0); - return blink::WebData(data, length); + return blink::WebData(reinterpret_cast<const char*>(data), length); } } NOTREACHED() << "Requested resource is unavailable: " << resource; |