Skip to content

Commit eca1db9

Browse files
committed
fix C warnings
1 parent c5a7cb8 commit eca1db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_datetimemodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3873,7 +3873,7 @@ static PyMethodDef date_methods[] = {
38733873
PyDoc_STR("Return a named tuple containing ISO year, week number, and "
38743874
"weekday.")},
38753875

3876-
{"isoformat", (PyCFunction)date_isoformat, METH_VARARGS | METH_KEYWORDS,
3876+
{"isoformat", _PyCFunction_CAST(date_isoformat), METH_VARARGS | METH_KEYWORDS,
38773877
PyDoc_STR("Return string in ISO 8601 format, YYYY-MM-DD.\n"
38783878
"If basic is true, uses the basic format, YYYYMMDD.")},
38793879

0 commit comments

Comments
 (0)