Skip to content

Commit

Permalink
Silence signed/unsigned comparison warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed Nov 29, 2023
1 parent 4b1c173 commit a807e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/meterpreter/source/tiny-regex-c/re.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ re_t re_compile(const char* pattern, size_t pattern_length)
int i = 0; /* index into pattern */
int j = 0; /* index into re_compiled */

while (i < pattern_length && (j+1 < MAX_REGEXP_OBJECTS))
while (i < (int)pattern_length && (j+1 < MAX_REGEXP_OBJECTS))
{
c = pattern[i];

Expand All @@ -120,7 +120,7 @@ re_t re_compile(const char* pattern, size_t pattern_length)
/* Escaped character-classes (\s \w ...): */
case '\\':
{
if (i + 1 < pattern_length)
if (i + 1 < (int)pattern_length)
{
/* Skip the escape-char '\\' */
i += 1;
Expand Down

0 comments on commit a807e21

Please sign in to comment.