Fix warning "comparison of integers of different signs" (NFC)

This commit is contained in:
Mehdi Amini 2021-12-18 20:38:06 +00:00
parent aeb36ae0f4
commit cc4781464f
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ private:
ArrayRef<Value> constants, ValueRange::iterator &element_it,
SmallVectorImpl<Value> &indices,
ImplicitLocOpBuilder b) const {
if (dim == shape.size() - 1) {
if (dim == static_cast<int>(shape.size()) - 1) {
for (int i = 0; i < shape.back(); ++i) {
indices.back() = constants[i];
b.create<memref::StoreOp>(*element_it, buffer, indices);