forked from mindspore-Ecosystem/mindspore
Fix glog off compilation bug
This commit is contained in:
parent
689efef7f0
commit
ebd4cc5c0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue