Skip to content

Commit 23eb55f

Browse files
committed
Fix compiler warning in sre.c
sre_lower_ascii() is called by _sre_ascii_tolower_impl() with a signed "int".
1 parent 4fbcf30 commit 23eb55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sre/sre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static const char copyright[] =
106106
#define SRE_IS_WORD(ch)\
107107
((ch) <= 'z' && (Py_ISALNUM(ch) || (ch) == '_'))
108108

109-
static unsigned int sre_lower_ascii(unsigned int ch)
109+
static unsigned int sre_lower_ascii(int ch)
110110
{
111111
return ((ch) < 128 ? Py_TOLOWER(ch) : ch);
112112
}

0 commit comments

Comments
 (0)