Skip to content

Commit

Permalink
Fix warnings about comparison of integer of different signs (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing authored Feb 11, 2024
1 parent 5948e25 commit 3c0a2d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/tblgen/jl-generators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ end
bool inferrable = canInferType(op);

bool alreadykeyword = false; // set to true when first optional argument is encountered. This is used to insert a single semicolon (;) instead of a comma (,) as separator between positional and keyword arguments.
for (size_t i = 0; i < op.getNumOperands(); i++)
for (int i = 0; i < op.getNumOperands(); i++)
{
const auto &named_operand = op.getOperand(i);
std::string defaultvalue = "";
Expand Down Expand Up @@ -271,7 +271,7 @@ end
if (op.getTrait("::mlir::OpTrait::AttrSizedOperandSegments"))
{
std::string operandsegmentsizes = "";
for (size_t i = 0; i < op.getNumOperands(); i++)
for (int i = 0; i < op.getNumOperands(); i++)
{
const auto &named_operand = op.getOperand(i);
std::string operandname = named_operand.name.str();
Expand All @@ -293,7 +293,7 @@ end

std::string resultarguments = "";
std::string resultcontainer = "";
for (size_t i = 0; i < op.getNumResults(); i++)
for (int i = 0; i < op.getNumResults(); i++)
{
const auto &named_result = op.getResult(i);
std::string defaultvalue = "";
Expand Down Expand Up @@ -333,7 +333,7 @@ end

std::string attributearguments = "";
std::string attributecontainer = "";
for (size_t i = 0; i < op.getNumAttributes(); i++)
for (int i = 0; i < op.getNumAttributes(); i++)
{
const auto &named_attr = op.getAttribute(i);

Expand Down

0 comments on commit 3c0a2d0

Please sign in to comment.