Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
afa80ea
)
THRIFT-244. cpp: Fix TJSONProtocol::writeMessageBegin
author
David Reiss
<dreiss@apache.org>
Thu, 15 Jan 2009 23:56:19 +0000
(23:56 +0000)
committer
David Reiss
<dreiss@apache.org>
Thu, 15 Jan 2009 23:56:19 +0000
(23:56 +0000)
uint8_t is a character type, so lexical_cast doesn't convert it
to an integer representation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734862
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/protocol/TJSONProtocol.cpp
patch
|
blob
|
history
diff --git
a/lib/cpp/src/protocol/TJSONProtocol.cpp
b/lib/cpp/src/protocol/TJSONProtocol.cpp
index
a7564d1
..
ca3a51f
100644
(file)
--- a/
lib/cpp/src/protocol/TJSONProtocol.cpp
+++ b/
lib/cpp/src/protocol/TJSONProtocol.cpp
@@
-32,7
+32,7
@@
static const uint8_t kJSONEscapeChar = 'u';
static const std::string kJSONEscapePrefix("\\u00");
-static const uint
8
_t kThriftVersion1 = 1;
+static const uint
32
_t kThriftVersion1 = 1;
static const std::string kThriftNan("NaN");
static const std::string kThriftInfinity("Infinity");