From d34792c9774162aa812c1ce63e03a69ff2617400 Mon Sep 17 00:00:00 2001 From: rudy Date: Fri, 10 Dec 2021 16:54:07 +0100 Subject: [PATCH] fix(compiler): remove 1 warning (usgined vs signed) --- .../lib/Conversion/HLFHETensorOpsToLinalg/TensorOpsToLinalg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lib/Conversion/HLFHETensorOpsToLinalg/TensorOpsToLinalg.cpp b/compiler/lib/Conversion/HLFHETensorOpsToLinalg/TensorOpsToLinalg.cpp index 40b37345d..0fb1d8433 100644 --- a/compiler/lib/Conversion/HLFHETensorOpsToLinalg/TensorOpsToLinalg.cpp +++ b/compiler/lib/Conversion/HLFHETensorOpsToLinalg/TensorOpsToLinalg.cpp @@ -162,7 +162,7 @@ getBroadcastedAffineMapMultiLUT(const mlir::RankedTensorType &resultType, affineExprs.reserve(operandShape.size()); // Don't take the lut dimension into account size_t deltaNumDim = resultShape.size() - operandShape.size() + 1; - for (auto i = 0; i < operandShape.size() - 1; i++) { + for (size_t i = 0; i < operandShape.size() - 1; i++) { if (operandShape[i] == 1 && resultShape[i + deltaNumDim] != 1) { affineExprs.push_back(rewriter.getAffineConstantExpr(0)); } else {