Browse Source

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

Fix the GCC warning: "initialization discards ‘const’ qualifier from
pointer target type".
pull/16517/head
Victor Stinner 7 years ago
committed by GitHub
parent
commit
2f90261280
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Modules/_randommodule.c

2
Modules/_randommodule.c

@ -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},

Loading…
Cancel
Save