Skip to content

Commit 2f90261

Browse files
authored
bpo-38321: Fix compiler warning in _randommodule.c (GH-16512)
Fix the GCC warning: "initialization discards ‘const’ qualifier from pointer target type".
1 parent 982bfa4 commit 2f90261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_randommodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ PyDoc_STRVAR(random_doc,
543543
"Random() -> create a random number generator with its own internal state.");
544544

545545
static PyType_Slot Random_Type_slots[] = {
546-
{Py_tp_doc, random_doc},
546+
{Py_tp_doc, (void *)random_doc},
547547
{Py_tp_methods, random_methods},
548548
{Py_tp_new, random_new},
549549
{Py_tp_free, PyObject_Free},

0 commit comments

Comments
 (0)