Thrift compiler improvements, two modes for PHP
Summary: Complete PHP generator and CPP generator to new formats, and offer PHP generator that generates inline code free of any TProtocol abstraction
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664771 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_field.h b/compiler/cpp/src/parse/t_field.h
index fc38456..7f4d0e9 100644
--- a/compiler/cpp/src/parse/t_field.h
+++ b/compiler/cpp/src/parse/t_field.h
@@ -14,19 +14,19 @@
t_field(t_type* type, std::string name) :
type_(type), name_(name), key_(0) {}
- t_field(t_type* type, std::string name, uint32_t key) :
+ t_field(t_type* type, std::string name, int32_t key) :
type_(type), name_(name), key_(key) {}
~t_field() {}
t_type* get_type() const { return type_; }
const std::string& get_name() const { return name_; }
- uint32_t get_key() const { return key_; }
+ int32_t get_key() const { return key_; }
private:
t_type* type_;
std::string name_;
- uint32_t key_;
+ int32_t key_;
};
#endif