You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/10/21 18:28:10 UTC
git commit: Fix a warning
Updated Branches:
refs/heads/trunk 08425c7e8 -> aae2a8a72
Fix a warning
Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/aae2a8a7
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/aae2a8a7
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/aae2a8a7
Branch: refs/heads/trunk
Commit: aae2a8a72937a083b538a195aa53e0a59d0b73d2
Parents: 08425c7
Author: Timothy Bish <ta...@gmai.com>
Authored: Mon Oct 21 12:28:02 2013 -0400
Committer: Timothy Bish <ta...@gmai.com>
Committed: Mon Oct 21 12:28:02 2013 -0400
----------------------------------------------------------------------
activemq-cpp/src/main/activemq/wireformat/stomp/StompFrame.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/aae2a8a7/activemq-cpp/src/main/activemq/wireformat/stomp/StompFrame.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/main/activemq/wireformat/stomp/StompFrame.cpp b/activemq-cpp/src/main/activemq/wireformat/stomp/StompFrame.cpp
index 511dc78..92e1b28 100644
--- a/activemq-cpp/src/main/activemq/wireformat/stomp/StompFrame.cpp
+++ b/activemq-cpp/src/main/activemq/wireformat/stomp/StompFrame.cpp
@@ -37,8 +37,7 @@ using namespace decaf::lang;
using namespace decaf::lang::exceptions;
////////////////////////////////////////////////////////////////////////////////
-StompFrame::StompFrame() :
- command(), properties(), body() {
+StompFrame::StompFrame() : command(), properties(), body() {
}
////////////////////////////////////////////////////////////////////////////////
@@ -296,7 +295,7 @@ void StompFrame::readBody(decaf::io::DataInputStream* in) {
this->body.resize((std::size_t) content_length);
// Read the Content Length now
- in->readFully(&body[0], body.size());
+ in->readFully(&body[0], (int) body.size());
// Content Length read, now pop the end terminator off (\0\n).
if (in->readByte() != '\0') {