Skip to content

Commit

Permalink
Don't tell the thrift people
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Dec 21, 2021
1 parent 4b12475 commit 57309ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/thrift/thrift/protocol/TCompactProtocol.h
Expand Up @@ -240,7 +240,7 @@ class TCompactProtocolFactoryT : public TProtocolFactory {
void setContainerSizeLimit(int32_t container_limit) { container_limit_ = container_limit; }

std::shared_ptr<TProtocol> getProtocol(std::shared_ptr<TTransport> trans) override {
std::shared_ptr<Transport_> specific_trans = std::dynamic_pointer_cast<Transport_>(trans);
std::shared_ptr<Transport_> specific_trans = std::static_pointer_cast<Transport_>(trans);
TProtocol* prot;
if (specific_trans) {
prot = new TCompactProtocolT<Transport_>(specific_trans, string_limit_, container_limit_);
Expand Down

0 comments on commit 57309ee

Please sign in to comment.