Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/shared/Communication.cpp

Issue 11449051: Fix 64-bit conversion errors (Closed)
Patch Set: Created Aug. 16, 2013, 2:56 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/shared/Communication.cpp
===================================================================
--- a/src/shared/Communication.cpp
+++ b/src/shared/Communication.cpp
@@ -157,6 +157,6 @@
{
DWORD bytesWritten;
std::string data = message.Get();
- if (!WriteFile(pipe, data.c_str(), data.length(), &bytesWritten, 0))
+ if (!WriteFile(pipe, data.c_str(), static_cast<DWORD>(data.length()), &bytesWritten, 0))
throw std::runtime_error("Failed to write to pipe");
}

Powered by Google App Engine
This is Rietveld