diff --git a/mindspore/ccsrc/common/trans.cc b/mindspore/ccsrc/common/trans.cc index e0c70e1b01..b4e02c8fe6 100644 --- a/mindspore/ccsrc/common/trans.cc +++ b/mindspore/ccsrc/common/trans.cc @@ -920,7 +920,7 @@ bool NchwToC1hwncoc0(const FormatArgs &args, void *result) { : static_cast(SECUREC_MEM_MAX_LEN); size_t c_i = c0_i + c1_i * c0; size_t src_offset = (n_i * c * h * w + c_i * h * w + h_i * w + w_i) * size; - error_t ret; + errno_t ret; if (c_i < c && c0_i == co_i) { ret = memcpy_s(static_cast(result) + dst_offset, protected_size, static_cast(args.data) + src_offset, size);