mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
low-hanging fruit in Python/ - g++ still hates all the enum_kind declarations
in Python/Python-ast.c. Not sure what to do about those.
This commit is contained in:
parent
a62862120d
commit
a863d334aa
4 changed files with 24 additions and 22 deletions
|
@ -893,7 +893,7 @@ SyntaxError__str__(PyObject *self, PyObject *args)
|
|||
if (have_filename)
|
||||
bufsize += PyString_GET_SIZE(filename);
|
||||
|
||||
buffer = PyMem_MALLOC(bufsize);
|
||||
buffer = (char *)PyMem_MALLOC(bufsize);
|
||||
if (buffer != NULL) {
|
||||
if (have_filename && have_lineno)
|
||||
PyOS_snprintf(buffer, bufsize, "%s (%s, line %ld)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue