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

Unified Diff: src/shared/Communication.h

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.h
===================================================================
--- a/src/shared/Communication.h
+++ b/src/shared/Communication.h
@@ -132,7 +132,7 @@
{
WriteBinary(type);
- SizeType length = value.size();
+ SizeType length = static_cast<SizeType>(value.size());
WriteBinary(length);
buffer.write(reinterpret_cast<const char*>(value.c_str()), sizeof(T::value_type) * length);

Powered by Google App Engine
This is Rietveld