Index: cloud_print/service/win/cloud_print_service.cc |
diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc |
index 92e5fec59bba6165a53a4ba5e9c03e4b1c5477f0..8c5a4a0744b2a9f4291ccebd95edae7ef7bfd37c 100644 |
--- a/cloud_print/service/win/cloud_print_service.cc |
+++ b/cloud_print/service/win/cloud_print_service.cc |
@@ -361,8 +361,8 @@ class CloudPrintServiceModule |
} |
if (new_contents != contents) { |
- size_t written = base::WriteFile(file, new_contents.c_str(), |
- new_contents.size()); |
+ size_t written = base::WriteFile( |
+ file, new_contents.c_str(), static_cast<int>(new_contents.size())); |
if (written != new_contents.size()) { |
return ReportError(cloud_print::GetLastHResult(), |
IDS_ERROR_FAILED_CREATE_CONFIG); |