Skip to content

Commit 62b26e8

Browse files
Try to fix an undefined behavior.
1 parent d4a69a2 commit 62b26e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_sre/sre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,7 +3108,7 @@ expand_template(TemplateObject *self, MatchObject *match)
31083108
}
31093109

31103110
static PyObject *
3111-
template_call(TemplateObject *self, PyObject *args, PyObject *kwargs)
3111+
template_call(PyObject *self, PyObject *args, PyObject *kwargs)
31123112
{
31133113
MatchObject *match;
31143114
if (!_PyArg_NoKeywords("template", kwargs))
@@ -3121,7 +3121,7 @@ template_call(TemplateObject *self, PyObject *args, PyObject *kwargs)
31213121
if (!PyArg_ParseTuple(args, "O!", state->Match_Type, &match))
31223122
return NULL;
31233123

3124-
return expand_template(self, match);
3124+
return expand_template((TemplateObject *)self, match);
31253125
}
31263126

31273127

0 commit comments

Comments
 (0)