Author: dreiss
Date: Thu Jan 15 15:56:19 2009
New Revision: 734862
URL: http://svn.apache.org/viewvc?rev=734862&view=rev
Log:
THRIFT-244. cpp: Fix TJSONProtocol::writeMessageBegin
uint8_t is a character type, so lexical_cast doesn't convert it
to an integer representation.
Modified:
incubator/thrift/trunk/lib/cpp/src/protocol/TJSONProtocol.cpp
Modified: incubator/thrift/trunk/lib/cpp/src/protocol/TJSONProtocol.cpp
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/protocol/TJSONProtocol.cpp?rev=734862&r1=734861&r2=734862&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/protocol/TJSONProtocol.cpp (original)
+++ incubator/thrift/trunk/lib/cpp/src/protocol/TJSONProtocol.cpp Thu Jan 15
15:56:19 2009
@@ -32,7 +32,7 @@
static const std::string kJSONEscapePrefix("\\u00");
-static const uint8_t kThriftVersion1 = 1;
+static const uint32_t kThriftVersion1 = 1;
static const std::string kThriftNan("NaN");
static const std::string kThriftInfinity("Infinity");