Browse Source

!4948 Fix backend compilation error when -g is off

Merge pull request !4948 from JesseKLee/glog_off
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
3eef4a4e06
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/ccsrc/minddata/dataset/engine/cache/cache_common.h
  2. +1
    -1
      mindspore/ccsrc/minddata/dataset/engine/cache/cache_request.h

+ 1
- 1
mindspore/ccsrc/minddata/dataset/engine/cache/cache_common.h 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());
}



+ 1
- 1
mindspore/ccsrc/minddata/dataset/engine/cache/cache_request.h 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


Loading…
Cancel
Save