Skip to content

Commit

Permalink
gcov: Fix integer types in ftw_read_file()
Browse files Browse the repository at this point in the history
libgcc/

	* libgcov-util.c (ftw_read_file): Use size_t for strlen() variables.
  • Loading branch information
sebhub committed Apr 28, 2022
1 parent c190b0e commit 1ff8d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgcc/libgcov-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ ftw_read_file (const char *filename,
const struct stat *status ATTRIBUTE_UNUSED,
int type)
{
int filename_len;
int suffix_len;
size_t filename_len;
size_t suffix_len;

/* Only read regular files. */
if (type != FTW_F)
Expand Down

0 comments on commit 1ff8d19

Please sign in to comment.