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:
Anthony Baxter 2006-04-11 07:43:46 +00:00
parent a62862120d
commit a863d334aa
4 changed files with 24 additions and 22 deletions

View file

@ -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)",