提交 ebd4cc5c 编写于 作者: J Jesse Lee

Fix glog off compilation bug

上级 689efef7
......@@ -59,7 +59,7 @@ constexpr static uint32_t kDataIsInSharedMemory = 2;
/// \param rc[in] Status object
/// \param reply[in/out] pointer to pre-allocated protobuf object
inline void Status2CacheReply(const Status &rc, CacheReply *reply) {
reply->set_rc(static_cast<google::int32>(rc.get_code()));
reply->set_rc(static_cast<int32_t>(rc.get_code()));
reply->set_msg(rc.ToString());
}
......
......@@ -76,7 +76,7 @@ class BaseRequest {
/// \brief Base class of a cache server request
/// \param type Type of the request
explicit BaseRequest(RequestType type) : type_(type) { rq_.set_type(static_cast<google::int32>(type_)); }
explicit BaseRequest(RequestType type) : type_(type) { rq_.set_type(static_cast<int16_t>(type_)); }
virtual ~BaseRequest() = default;
/// \brief A print method for debugging
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册