Skip to content

Commit d032ba0

Browse files
committed
revert cast removal
1 parent dfe5c9d commit d032ba0

File tree

115 files changed

+1108
-1108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1108
-1108
lines changed

Lib/test/test_clinic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ def test_dest_buffer_not_empty_at_eof(self):
432432
"\\n");
433433
434434
#define FN_METHODDEF \\
435-
{"fn", fn, METH_O, fn__doc__},
435+
{"fn", (PyCFunction)fn, METH_O, fn__doc__},
436436
437437
static PyObject *
438438
fn(PyObject *module, PyObject *a)
439-
/*[clinic end generated code: output=9ca52938037af908 input=524ce2e021e4eba6]*/
439+
/*[clinic end generated code: output=be6798b148ab4e53 input=524ce2e021e4eba6]*/
440440
""")
441441
block = dedent("""
442442
/*[clinic input]
@@ -2930,11 +2930,11 @@ def test_file_dest(self):
29302930
"\\n");
29312931
29322932
#define FUNC_METHODDEF \\
2933-
{"func", func, METH_O, func__doc__},
2933+
{"func", (PyCFunction)func, METH_O, func__doc__},
29342934
29352935
static PyObject *
29362936
func(PyObject *module, PyObject *a)
2937-
/*[clinic end generated code: output=c710c5cbbd6f0a2f input=a9049054013a1b77]*/
2937+
/*[clinic end generated code: output=3dde2d13002165b9 input=a9049054013a1b77]*/
29382938
""")
29392939
with os_helper.temp_dir() as tmp_dir:
29402940
in_fn = os.path.join(tmp_dir, "test.c")

Modules/_ctypes/clinic/callproc.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_io/clinic/bufferedio.c.h

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_io/clinic/bytesio.c.h

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_io/clinic/fileio.c.h

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)