Fix glog off compilation bug

This commit is contained in:
Jesse Lee 2020-08-21 09:37:22 -04:00
parent 689efef7f0
commit ebd4cc5c0a
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}

View File

@ -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