Browse Source

modify the cast from int to int64_t

tags/v1.6.0
huangxinjing 4 years ago
parent
commit
59a951a7e7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/kernel_compiler/common_utils.cc

+ 1
- 1
mindspore/ccsrc/backend/kernel_compiler/common_utils.cc View File

@@ -950,7 +950,7 @@ bool GetShapeSize(const std::vector<size_t> &shape, const TypePtr &type_ptr, int
return false;
}
for (size_t j = 0; j < shape.size(); j++) {
size_i[0] = LongMulWithOverflowCheck(size_i[0], static_cast<int>(shape[j]));
size_i[0] = LongMulWithOverflowCheck(size_i[0], static_cast<int64_t>(shape[j]));
}
size_i[0] = LongMulWithOverflowCheck(size_i[0], SizeToInt(type_byte));
return true;


Loading…
Cancel
Save