Skip to content

Commit

Permalink
Fix warning about printf: (#3419)
Browse files Browse the repository at this point in the history
- warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type `std::size_t`.
  • Loading branch information
Jarod42 authored Jul 11, 2024
1 parent 4364c23 commit 2dc3cfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CxxParser/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void testFuncParser(char *buf)
}

// printf("total time: %d\n", end-start);
printf("matches found: %d\n", li.size());
printf("matches found: %d\n", (int)li.size());
}

void testExprParser(char *buf)
Expand Down Expand Up @@ -116,7 +116,7 @@ void testVarParser(char *buf)
}

// printf("total time: %d\n", end-start);
printf("matches found: %d\n", li.size());
printf("matches found: %d\n", (int)li.size());
}

void testTypedefParser(char *buf)
Expand All @@ -131,7 +131,7 @@ void testTypedefParser(char *buf)
clTypedef var = *iter;
var.print();
}
printf("matches found: %d\n", li.size());
printf("matches found: %d\n", (int)li.size());
}

//-------------------------------------------------------
Expand Down

0 comments on commit 2dc3cfa

Please sign in to comment.