Index: ppapi/proxy/ppb_file_io_proxy.cc |
diff --git a/ppapi/proxy/ppb_file_io_proxy.cc b/ppapi/proxy/ppb_file_io_proxy.cc |
index 6858655a3ecf14e3ac88cf28fd178e2aa02bc08b..e08b926bab4567174e72a70ea58c3cf079919bad 100644 |
--- a/ppapi/proxy/ppb_file_io_proxy.cc |
+++ b/ppapi/proxy/ppb_file_io_proxy.cc |
@@ -328,7 +328,8 @@ void PPB_FileIO_Proxy::OnHostMsgWrite(const HostResource& host_resource, |
&PPB_FileIO_Proxy::GeneralCallbackCompleteInHost, |
host_resource); |
if (enter.succeeded()) { |
- enter.SetResult(enter.object()->Write(offset, data.data(), data.size(), |
+ enter.SetResult(enter.object()->Write(offset, data.data(), |
+ static_cast<int32_t>(data.size()), |
enter.callback())); |
} |
} |