mirror of https://github.com/python/cpython.git
type_error(): Added "const" to signature to eliminate warning with -Wall.
This commit is contained in:
parent
3be9a8a5ed
commit
4201b9e420
|
@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|||
/* Shorthands to return certain errors */
|
||||
|
||||
static PyObject *
|
||||
type_error(char *msg)
|
||||
type_error(const char *msg)
|
||||
{
|
||||
PyErr_SetString(PyExc_TypeError, msg);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue