| commit | 8252577ec9da25f027b9edfa6876f9d9a0094566 | [log] [tgz] |
|---|---|---|
| author | Roger Meier <roger@apache.org> | 周五 11月 16 00:38:27 2012 +0000 |
| committer | Roger Meier <roger@apache.org> | 周五 11月 16 00:38:27 2012 +0000 |
| tree | 1965a4466878a67ae899535b41c00c3b5448acb0 | |
| parent | e242a96ae3582aaca8a5407211f05a6a6ea78ceb [diff] [blame] |
THRIFT-1740 Make C++ library build on OS X and iOS Patch: Ben Craig minor modification by Roger Meier git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410127 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp b/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp index 1eb444b..4fbfc13 100644 --- a/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp +++ b/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp
@@ -253,8 +253,8 @@ // Back up one step before writing. pos++; - trans_->write(buf+pos, sizeof(buf) - pos); - return sizeof(buf) - pos; + trans_->write(buf+pos, static_cast<uint32_t>(sizeof(buf) - pos)); + return static_cast<uint32_t>(sizeof(buf) - pos); }