提交 9773cf02 编写于 作者: C chenjianping

fix windows building fail

上级 b2fdb194
...@@ -920,7 +920,7 @@ bool NchwToC1hwncoc0(const FormatArgs &args, void *result) { ...@@ -920,7 +920,7 @@ bool NchwToC1hwncoc0(const FormatArgs &args, void *result) {
: static_cast<size_t>(SECUREC_MEM_MAX_LEN); : static_cast<size_t>(SECUREC_MEM_MAX_LEN);
size_t c_i = c0_i + c1_i * c0; 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; 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) { if (c_i < c && c0_i == co_i) {
ret = memcpy_s(static_cast<uint8_t *>(result) + dst_offset, protected_size, ret = memcpy_s(static_cast<uint8_t *>(result) + dst_offset, protected_size,
static_cast<uint8_t const *>(args.data) + src_offset, size); static_cast<uint8_t const *>(args.data) + src_offset, size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册