Commit 2f902612 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-38321: Fix compiler warning in _randommodule.c (GH-16512)

Fix the GCC warning: "initialization discards ‘const’ qualifier from
pointer target type".
parent 982bfa4d
......@@ -543,7 +543,7 @@ PyDoc_STRVAR(random_doc,
"Random() -> create a random number generator with its own internal state.");
static PyType_Slot Random_Type_slots[] = {
{Py_tp_doc, random_doc},
{Py_tp_doc, (void *)random_doc},
{Py_tp_methods, random_methods},
{Py_tp_new, random_new},
{Py_tp_free, PyObject_Free},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment